gpg-error-0.6.0/.cargo_vcs_info.json0000644000000001360000000000100127430ustar { "git": { "sha1": "c46d81bf338dd36f4ba664aacf534b0bb77020e6" }, "path_in_vcs": "" }gpg-error-0.6.0/.dockerignore000064400000000000000000000000371046102023000142070ustar 00000000000000**/.* **/Cargo.lock **/target/ gpg-error-0.6.0/.github/workflows/ci.yml000064400000000000000000000033161046102023000162510ustar 00000000000000name: Continuous Integration on: [push, pull_request] jobs: test: name: Test Suite (${{ matrix.os }}, rust-${{ matrix.rust }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: include: - os: ubuntu-latest rust: stable - os: ubuntu-latest rust: nightly - os: macos-latest rust: stable steps: - name: Checkout repository uses: actions/checkout@v3 - name: Install dependencies (Linux) if: startsWith(matrix.os, 'ubuntu') run: sudo apt-get install -y --no-install-recommends libgpg-error-dev - name: Install dependencies (macOS) if: startsWith(matrix.os, 'macos') run: brew install gnupg - name: Install rust uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose --no-fail-fast docker-static: name: Test Suite (linux, docker, musl) runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Build docker container run: docker build -f docker/Dockerfile.static -t test-build . - name: Run tests in container run: docker run test-build docker-windows: name: Test Suite (windows, docker) runs-on: windows-2022 steps: - name: Checkout repository uses: actions/checkout@v3 - name: Build docker container run: docker build --build-arg WIN_VARIANT=ltsc2022 -f docker/Dockerfile.windows -t test-build . - name: Run tests in container run: docker run test-build gpg-error-0.6.0/.gitignore000064400000000000000000000002121046102023000135160ustar 00000000000000.* !.gitignore !.gitmodules !.travis.yml !.travis/ # Compiled files *.o *.so *.rlib *.dll *.exe # Generated by Cargo Cargo.lock target/ gpg-error-0.6.0/COPYING000064400000000000000000000636421046102023000126010ustar 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, 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 this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), 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 distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser 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 Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "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 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY 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 LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey 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 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. This 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 this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! gpg-error-0.6.0/Cargo.toml0000644000000016060000000000100107440ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.64" name = "gpg-error" version = "0.6.0" description = "Libgpg-error bindings for Rust" documentation = "https://docs.rs/gpg-error" readme = "README.md" keywords = ["gpg"] categories = ["api-bindings"] license = "LGPL-2.1" repository = "https://github.com/gpg-rs/libgpg-error" [dependencies.ffi] version = "0.6.0" package = "libgpg-error-sys" [badges.maintenance] status = "experimental" gpg-error-0.6.0/Cargo.toml.orig000064400000000000000000000011301046102023000144150ustar 00000000000000[package] name = "gpg-error" version.workspace = true edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true documentation = "https://docs.rs/gpg-error" categories = ["api-bindings"] keywords = ["gpg"] description = "Libgpg-error bindings for Rust" [badges] maintenance = { status = "experimental" } [dependencies.ffi] package = "libgpg-error-sys" path = "libgpg-error-sys" version = "0.6.0" [workspace.package] version = "0.6.0" edition = "2021" rust-version = "1.64" license = "LGPL-2.1" repository = "https://github.com/gpg-rs/libgpg-error" gpg-error-0.6.0/Makefile000064400000000000000000000003031046102023000131670ustar 00000000000000.PHONY: gen gen: src/consts.rs libgpg-error-sys/src/consts.rs src/consts.rs libgpg-error-sys/src/consts.rs: vendor/err-sources.h.in vendor/err-codes.h.in vendor/errnos.in ./tools/mkerrcodes.py gpg-error-0.6.0/README.md000064400000000000000000000030021046102023000130050ustar 00000000000000# libgpg-error [![Build Status][build]][ci] [![crates.io version][version]][crate] [![LGPL-2.1 licensed][license]](./COPYING) [![downloads][downloads]][crate] libgpg-error bindings for Rust. ## Using To use the crate, add it to your depedencies: ```sh $ cargo add libgpg-error ``` ### Requirements These crates require the libgpg-error library and its development files to be installed. The build script uses the [system-deps] crate to attempt to locate them (or the registry on Windows). On Debian/Ubuntu based systems: ```sh $ sudo apt-get install libgpg-error-dev ``` On Fedora/RHEL based systems: ```sh $ sudo dnf install libgpg-error-devel ``` On MacOS systems: ```sh $ brew install gnupg ``` On Windows systems, download and install the official [Gpg4win] installer. Only the `i686-pc-windows-gnu` target is supported. ## License The `libgpg-error` and `libgpg-error-sys` crates are licensed under the [LGPL-2.1 license](./COPYING). Files under vendor are part of libgpg-error and are licensed under LGPL-2.1-or-later. [crate]: https://crates.io/crates/gpg-error [ci]: https://github.com/gpg-rs/libgpg-error/workflows/ci [build]: https://img.shields.io/github/workflow/status/gpg-rs/libgpg-error/ci?style=flat-square [version]: https://img.shields.io/crates/v/gpg-error?style=flat-square [license]: https://img.shields.io/crates/l/gpg-error?style=flat-square [downloads]: https://img.shields.io/crates/d/gpg-error?style=flat-square [system-deps]: https://crates.io/crates/system-deps [Gpg4win]: https://www.gpg4win.org/ gpg-error-0.6.0/docker/Dockerfile.static000064400000000000000000000024311046102023000162620ustar 00000000000000FROM clux/muslrust:stable as builder RUN apt-get update && apt-get install -y --no-install-recommends bzip2 && rm -rf /var/lib/apt/lists/* ENV TARGET "x86_64-unknown-linux-musl" ENV SYSTEM_DEPS_LINK static # Optional localization support: # To enable uncomment the following commands, replace "--disable-nls" with # "--with-libintl-prefix=$PREFIX". # ARG GETTEXT_VER=0.21 # WORKDIR /usr/src # ADD https://ftp.gnu.org/gnu/gettext/gettext-${GETTEXT_VER}.tar.bz2 ./ # RUN tar -xjf gettext-${GETTEXT_VER}.tar.bz2 # WORKDIR gettext-$GETTEXT_VER # RUN ./configure --host "$TARGET" --prefix="$PREFIX" --with-pic --enable-fast-install --disable-dependency-tracking --without-emacs --disable-java --disable-csharp --disable-c++ # RUN make -j$(nproc) install ARG LIBGPG_ERROR_VER=1.46 WORKDIR /usr/src ADD https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${LIBGPG_ERROR_VER}.tar.bz2 ./ RUN tar -xjf libgpg-error-${LIBGPG_ERROR_VER}.tar.bz2 WORKDIR libgpg-error-$LIBGPG_ERROR_VER RUN ./configure --host "$TARGET" --prefix="$PREFIX" --with-pic --enable-fast-install --disable-dependency-tracking --enable-static --disable-shared --disable-nls --disable-doc --disable-languages --disable-tests RUN make -j$(nproc) install FROM builder WORKDIR /root/ws COPY ./ ./ CMD ["cargo", "test", "--no-fail-fast"] gpg-error-0.6.0/docker/Dockerfile.windows000064400000000000000000000013111046102023000164610ustar 00000000000000# escape=` ARG WIN_VARIANT=1909 FROM mcr.microsoft.com/windows/servercore:${WIN_VARIANT} ENV RUSTUP_HOME=C:\rustup CARGO_HOME=C:\cargo SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] ADD https://win.rustup.rs/ C:\TEMP\rustup-init.exe RUN C:\TEMP\rustup-init.exe -y --profile minimal --default-host i686-pc-windows-gnu RUN setx /M PATH $(${Env:PATH} + \";${Env:CARGO_HOME}\bin\") ARG GNUPG_VERSION=2.3.8_20221013 ADD https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-${GNUPG_VERSION}.exe C:\TEMP\gnupg-w32.exe RUN C:\TEMP\gnupg-w32.exe /S WORKDIR C:\workspace COPY ./ ./ ENV GPGME_DEBUG 9 CMD ["cargo", "test", "--no-fail-fast", "--all-features"] gpg-error-0.6.0/src/consts.rs000064400000000000000000001060301046102023000142010ustar 00000000000000impl Error{ pub const SOURCE_UNKNOWN: ErrorSource = ffi::GPG_ERR_SOURCE_UNKNOWN; pub const SOURCE_GCRYPT: ErrorSource = ffi::GPG_ERR_SOURCE_GCRYPT; pub const SOURCE_GPG: ErrorSource = ffi::GPG_ERR_SOURCE_GPG; pub const SOURCE_GPGSM: ErrorSource = ffi::GPG_ERR_SOURCE_GPGSM; pub const SOURCE_GPGAGENT: ErrorSource = ffi::GPG_ERR_SOURCE_GPGAGENT; pub const SOURCE_PINENTRY: ErrorSource = ffi::GPG_ERR_SOURCE_PINENTRY; pub const SOURCE_SCD: ErrorSource = ffi::GPG_ERR_SOURCE_SCD; pub const SOURCE_GPGME: ErrorSource = ffi::GPG_ERR_SOURCE_GPGME; pub const SOURCE_KEYBOX: ErrorSource = ffi::GPG_ERR_SOURCE_KEYBOX; pub const SOURCE_KSBA: ErrorSource = ffi::GPG_ERR_SOURCE_KSBA; pub const SOURCE_DIRMNGR: ErrorSource = ffi::GPG_ERR_SOURCE_DIRMNGR; pub const SOURCE_GSTI: ErrorSource = ffi::GPG_ERR_SOURCE_GSTI; pub const SOURCE_GPA: ErrorSource = ffi::GPG_ERR_SOURCE_GPA; pub const SOURCE_KLEO: ErrorSource = ffi::GPG_ERR_SOURCE_KLEO; pub const SOURCE_G13: ErrorSource = ffi::GPG_ERR_SOURCE_G13; pub const SOURCE_ASSUAN: ErrorSource = ffi::GPG_ERR_SOURCE_ASSUAN; pub const SOURCE_TLS: ErrorSource = ffi::GPG_ERR_SOURCE_TLS; pub const SOURCE_ANY: ErrorSource = ffi::GPG_ERR_SOURCE_ANY; pub const SOURCE_USER_1: ErrorSource = ffi::GPG_ERR_SOURCE_USER_1; pub const SOURCE_USER_2: ErrorSource = ffi::GPG_ERR_SOURCE_USER_2; pub const SOURCE_USER_3: ErrorSource = ffi::GPG_ERR_SOURCE_USER_3; pub const SOURCE_USER_4: ErrorSource = ffi::GPG_ERR_SOURCE_USER_4; pub const NO_ERROR: Self = Self(ffi::GPG_ERR_NO_ERROR); pub const GENERAL: Self = Self(ffi::GPG_ERR_GENERAL); pub const UNKNOWN_PACKET: Self = Self(ffi::GPG_ERR_UNKNOWN_PACKET); pub const UNKNOWN_VERSION: Self = Self(ffi::GPG_ERR_UNKNOWN_VERSION); pub const PUBKEY_ALGO: Self = Self(ffi::GPG_ERR_PUBKEY_ALGO); pub const DIGEST_ALGO: Self = Self(ffi::GPG_ERR_DIGEST_ALGO); pub const BAD_PUBKEY: Self = Self(ffi::GPG_ERR_BAD_PUBKEY); pub const BAD_SECKEY: Self = Self(ffi::GPG_ERR_BAD_SECKEY); pub const BAD_SIGNATURE: Self = Self(ffi::GPG_ERR_BAD_SIGNATURE); pub const NO_PUBKEY: Self = Self(ffi::GPG_ERR_NO_PUBKEY); pub const CHECKSUM: Self = Self(ffi::GPG_ERR_CHECKSUM); pub const BAD_PASSPHRASE: Self = Self(ffi::GPG_ERR_BAD_PASSPHRASE); pub const CIPHER_ALGO: Self = Self(ffi::GPG_ERR_CIPHER_ALGO); pub const KEYRING_OPEN: Self = Self(ffi::GPG_ERR_KEYRING_OPEN); pub const INV_PACKET: Self = Self(ffi::GPG_ERR_INV_PACKET); pub const INV_ARMOR: Self = Self(ffi::GPG_ERR_INV_ARMOR); pub const NO_USER_ID: Self = Self(ffi::GPG_ERR_NO_USER_ID); pub const NO_SECKEY: Self = Self(ffi::GPG_ERR_NO_SECKEY); pub const WRONG_SECKEY: Self = Self(ffi::GPG_ERR_WRONG_SECKEY); pub const BAD_KEY: Self = Self(ffi::GPG_ERR_BAD_KEY); pub const COMPR_ALGO: Self = Self(ffi::GPG_ERR_COMPR_ALGO); pub const NO_PRIME: Self = Self(ffi::GPG_ERR_NO_PRIME); pub const NO_ENCODING_METHOD: Self = Self(ffi::GPG_ERR_NO_ENCODING_METHOD); pub const NO_ENCRYPTION_SCHEME: Self = Self(ffi::GPG_ERR_NO_ENCRYPTION_SCHEME); pub const NO_SIGNATURE_SCHEME: Self = Self(ffi::GPG_ERR_NO_SIGNATURE_SCHEME); pub const INV_ATTR: Self = Self(ffi::GPG_ERR_INV_ATTR); pub const NO_VALUE: Self = Self(ffi::GPG_ERR_NO_VALUE); pub const NOT_FOUND: Self = Self(ffi::GPG_ERR_NOT_FOUND); pub const VALUE_NOT_FOUND: Self = Self(ffi::GPG_ERR_VALUE_NOT_FOUND); pub const SYNTAX: Self = Self(ffi::GPG_ERR_SYNTAX); pub const BAD_MPI: Self = Self(ffi::GPG_ERR_BAD_MPI); pub const INV_PASSPHRASE: Self = Self(ffi::GPG_ERR_INV_PASSPHRASE); pub const SIG_CLASS: Self = Self(ffi::GPG_ERR_SIG_CLASS); pub const RESOURCE_LIMIT: Self = Self(ffi::GPG_ERR_RESOURCE_LIMIT); pub const INV_KEYRING: Self = Self(ffi::GPG_ERR_INV_KEYRING); pub const TRUSTDB: Self = Self(ffi::GPG_ERR_TRUSTDB); pub const BAD_CERT: Self = Self(ffi::GPG_ERR_BAD_CERT); pub const INV_USER_ID: Self = Self(ffi::GPG_ERR_INV_USER_ID); pub const UNEXPECTED: Self = Self(ffi::GPG_ERR_UNEXPECTED); pub const TIME_CONFLICT: Self = Self(ffi::GPG_ERR_TIME_CONFLICT); pub const KEYSERVER: Self = Self(ffi::GPG_ERR_KEYSERVER); pub const WRONG_PUBKEY_ALGO: Self = Self(ffi::GPG_ERR_WRONG_PUBKEY_ALGO); pub const TRIBUTE_TO_D_A: Self = Self(ffi::GPG_ERR_TRIBUTE_TO_D_A); pub const WEAK_KEY: Self = Self(ffi::GPG_ERR_WEAK_KEY); pub const INV_KEYLEN: Self = Self(ffi::GPG_ERR_INV_KEYLEN); pub const INV_ARG: Self = Self(ffi::GPG_ERR_INV_ARG); pub const BAD_URI: Self = Self(ffi::GPG_ERR_BAD_URI); pub const INV_URI: Self = Self(ffi::GPG_ERR_INV_URI); pub const NETWORK: Self = Self(ffi::GPG_ERR_NETWORK); pub const UNKNOWN_HOST: Self = Self(ffi::GPG_ERR_UNKNOWN_HOST); pub const SELFTEST_FAILED: Self = Self(ffi::GPG_ERR_SELFTEST_FAILED); pub const NOT_ENCRYPTED: Self = Self(ffi::GPG_ERR_NOT_ENCRYPTED); pub const NOT_PROCESSED: Self = Self(ffi::GPG_ERR_NOT_PROCESSED); pub const UNUSABLE_PUBKEY: Self = Self(ffi::GPG_ERR_UNUSABLE_PUBKEY); pub const UNUSABLE_SECKEY: Self = Self(ffi::GPG_ERR_UNUSABLE_SECKEY); pub const INV_VALUE: Self = Self(ffi::GPG_ERR_INV_VALUE); pub const BAD_CERT_CHAIN: Self = Self(ffi::GPG_ERR_BAD_CERT_CHAIN); pub const MISSING_CERT: Self = Self(ffi::GPG_ERR_MISSING_CERT); pub const NO_DATA: Self = Self(ffi::GPG_ERR_NO_DATA); pub const BUG: Self = Self(ffi::GPG_ERR_BUG); pub const NOT_SUPPORTED: Self = Self(ffi::GPG_ERR_NOT_SUPPORTED); pub const INV_OP: Self = Self(ffi::GPG_ERR_INV_OP); pub const TIMEOUT: Self = Self(ffi::GPG_ERR_TIMEOUT); pub const INTERNAL: Self = Self(ffi::GPG_ERR_INTERNAL); pub const EOF_GCRYPT: Self = Self(ffi::GPG_ERR_EOF_GCRYPT); pub const INV_OBJ: Self = Self(ffi::GPG_ERR_INV_OBJ); pub const TOO_SHORT: Self = Self(ffi::GPG_ERR_TOO_SHORT); pub const TOO_LARGE: Self = Self(ffi::GPG_ERR_TOO_LARGE); pub const NO_OBJ: Self = Self(ffi::GPG_ERR_NO_OBJ); pub const NOT_IMPLEMENTED: Self = Self(ffi::GPG_ERR_NOT_IMPLEMENTED); pub const CONFLICT: Self = Self(ffi::GPG_ERR_CONFLICT); pub const INV_CIPHER_MODE: Self = Self(ffi::GPG_ERR_INV_CIPHER_MODE); pub const INV_FLAG: Self = Self(ffi::GPG_ERR_INV_FLAG); pub const INV_HANDLE: Self = Self(ffi::GPG_ERR_INV_HANDLE); pub const TRUNCATED: Self = Self(ffi::GPG_ERR_TRUNCATED); pub const INCOMPLETE_LINE: Self = Self(ffi::GPG_ERR_INCOMPLETE_LINE); pub const INV_RESPONSE: Self = Self(ffi::GPG_ERR_INV_RESPONSE); pub const NO_AGENT: Self = Self(ffi::GPG_ERR_NO_AGENT); pub const AGENT: Self = Self(ffi::GPG_ERR_AGENT); pub const INV_DATA: Self = Self(ffi::GPG_ERR_INV_DATA); pub const ASSUAN_SERVER_FAULT: Self = Self(ffi::GPG_ERR_ASSUAN_SERVER_FAULT); pub const ASSUAN: Self = Self(ffi::GPG_ERR_ASSUAN); pub const INV_SESSION_KEY: Self = Self(ffi::GPG_ERR_INV_SESSION_KEY); pub const INV_SEXP: Self = Self(ffi::GPG_ERR_INV_SEXP); pub const UNSUPPORTED_ALGORITHM: Self = Self(ffi::GPG_ERR_UNSUPPORTED_ALGORITHM); pub const NO_PIN_ENTRY: Self = Self(ffi::GPG_ERR_NO_PIN_ENTRY); pub const PIN_ENTRY: Self = Self(ffi::GPG_ERR_PIN_ENTRY); pub const BAD_PIN: Self = Self(ffi::GPG_ERR_BAD_PIN); pub const INV_NAME: Self = Self(ffi::GPG_ERR_INV_NAME); pub const BAD_DATA: Self = Self(ffi::GPG_ERR_BAD_DATA); pub const INV_PARAMETER: Self = Self(ffi::GPG_ERR_INV_PARAMETER); pub const WRONG_CARD: Self = Self(ffi::GPG_ERR_WRONG_CARD); pub const NO_DIRMNGR: Self = Self(ffi::GPG_ERR_NO_DIRMNGR); pub const DIRMNGR: Self = Self(ffi::GPG_ERR_DIRMNGR); pub const CERT_REVOKED: Self = Self(ffi::GPG_ERR_CERT_REVOKED); pub const NO_CRL_KNOWN: Self = Self(ffi::GPG_ERR_NO_CRL_KNOWN); pub const CRL_TOO_OLD: Self = Self(ffi::GPG_ERR_CRL_TOO_OLD); pub const LINE_TOO_LONG: Self = Self(ffi::GPG_ERR_LINE_TOO_LONG); pub const NOT_TRUSTED: Self = Self(ffi::GPG_ERR_NOT_TRUSTED); pub const CANCELED: Self = Self(ffi::GPG_ERR_CANCELED); pub const BAD_CA_CERT: Self = Self(ffi::GPG_ERR_BAD_CA_CERT); pub const CERT_EXPIRED: Self = Self(ffi::GPG_ERR_CERT_EXPIRED); pub const CERT_TOO_YOUNG: Self = Self(ffi::GPG_ERR_CERT_TOO_YOUNG); pub const UNSUPPORTED_CERT: Self = Self(ffi::GPG_ERR_UNSUPPORTED_CERT); pub const UNKNOWN_SEXP: Self = Self(ffi::GPG_ERR_UNKNOWN_SEXP); pub const UNSUPPORTED_PROTECTION: Self = Self(ffi::GPG_ERR_UNSUPPORTED_PROTECTION); pub const CORRUPTED_PROTECTION: Self = Self(ffi::GPG_ERR_CORRUPTED_PROTECTION); pub const AMBIGUOUS_NAME: Self = Self(ffi::GPG_ERR_AMBIGUOUS_NAME); pub const CARD: Self = Self(ffi::GPG_ERR_CARD); pub const CARD_RESET: Self = Self(ffi::GPG_ERR_CARD_RESET); pub const CARD_REMOVED: Self = Self(ffi::GPG_ERR_CARD_REMOVED); pub const INV_CARD: Self = Self(ffi::GPG_ERR_INV_CARD); pub const CARD_NOT_PRESENT: Self = Self(ffi::GPG_ERR_CARD_NOT_PRESENT); pub const NO_PKCS15_APP: Self = Self(ffi::GPG_ERR_NO_PKCS15_APP); pub const NOT_CONFIRMED: Self = Self(ffi::GPG_ERR_NOT_CONFIRMED); pub const CONFIGURATION: Self = Self(ffi::GPG_ERR_CONFIGURATION); pub const NO_POLICY_MATCH: Self = Self(ffi::GPG_ERR_NO_POLICY_MATCH); pub const INV_INDEX: Self = Self(ffi::GPG_ERR_INV_INDEX); pub const INV_ID: Self = Self(ffi::GPG_ERR_INV_ID); pub const NO_SCDAEMON: Self = Self(ffi::GPG_ERR_NO_SCDAEMON); pub const SCDAEMON: Self = Self(ffi::GPG_ERR_SCDAEMON); pub const UNSUPPORTED_PROTOCOL: Self = Self(ffi::GPG_ERR_UNSUPPORTED_PROTOCOL); pub const BAD_PIN_METHOD: Self = Self(ffi::GPG_ERR_BAD_PIN_METHOD); pub const CARD_NOT_INITIALIZED: Self = Self(ffi::GPG_ERR_CARD_NOT_INITIALIZED); pub const UNSUPPORTED_OPERATION: Self = Self(ffi::GPG_ERR_UNSUPPORTED_OPERATION); pub const WRONG_KEY_USAGE: Self = Self(ffi::GPG_ERR_WRONG_KEY_USAGE); pub const NOTHING_FOUND: Self = Self(ffi::GPG_ERR_NOTHING_FOUND); pub const WRONG_BLOB_TYPE: Self = Self(ffi::GPG_ERR_WRONG_BLOB_TYPE); pub const MISSING_VALUE: Self = Self(ffi::GPG_ERR_MISSING_VALUE); pub const HARDWARE: Self = Self(ffi::GPG_ERR_HARDWARE); pub const PIN_BLOCKED: Self = Self(ffi::GPG_ERR_PIN_BLOCKED); pub const USE_CONDITIONS: Self = Self(ffi::GPG_ERR_USE_CONDITIONS); pub const PIN_NOT_SYNCED: Self = Self(ffi::GPG_ERR_PIN_NOT_SYNCED); pub const INV_CRL: Self = Self(ffi::GPG_ERR_INV_CRL); pub const BAD_BER: Self = Self(ffi::GPG_ERR_BAD_BER); pub const INV_BER: Self = Self(ffi::GPG_ERR_INV_BER); pub const ELEMENT_NOT_FOUND: Self = Self(ffi::GPG_ERR_ELEMENT_NOT_FOUND); pub const IDENTIFIER_NOT_FOUND: Self = Self(ffi::GPG_ERR_IDENTIFIER_NOT_FOUND); pub const INV_TAG: Self = Self(ffi::GPG_ERR_INV_TAG); pub const INV_LENGTH: Self = Self(ffi::GPG_ERR_INV_LENGTH); pub const INV_KEYINFO: Self = Self(ffi::GPG_ERR_INV_KEYINFO); pub const UNEXPECTED_TAG: Self = Self(ffi::GPG_ERR_UNEXPECTED_TAG); pub const NOT_DER_ENCODED: Self = Self(ffi::GPG_ERR_NOT_DER_ENCODED); pub const NO_CMS_OBJ: Self = Self(ffi::GPG_ERR_NO_CMS_OBJ); pub const INV_CMS_OBJ: Self = Self(ffi::GPG_ERR_INV_CMS_OBJ); pub const UNKNOWN_CMS_OBJ: Self = Self(ffi::GPG_ERR_UNKNOWN_CMS_OBJ); pub const UNSUPPORTED_CMS_OBJ: Self = Self(ffi::GPG_ERR_UNSUPPORTED_CMS_OBJ); pub const UNSUPPORTED_ENCODING: Self = Self(ffi::GPG_ERR_UNSUPPORTED_ENCODING); pub const UNSUPPORTED_CMS_VERSION: Self = Self(ffi::GPG_ERR_UNSUPPORTED_CMS_VERSION); pub const UNKNOWN_ALGORITHM: Self = Self(ffi::GPG_ERR_UNKNOWN_ALGORITHM); pub const INV_ENGINE: Self = Self(ffi::GPG_ERR_INV_ENGINE); pub const PUBKEY_NOT_TRUSTED: Self = Self(ffi::GPG_ERR_PUBKEY_NOT_TRUSTED); pub const DECRYPT_FAILED: Self = Self(ffi::GPG_ERR_DECRYPT_FAILED); pub const KEY_EXPIRED: Self = Self(ffi::GPG_ERR_KEY_EXPIRED); pub const SIG_EXPIRED: Self = Self(ffi::GPG_ERR_SIG_EXPIRED); pub const ENCODING_PROBLEM: Self = Self(ffi::GPG_ERR_ENCODING_PROBLEM); pub const INV_STATE: Self = Self(ffi::GPG_ERR_INV_STATE); pub const DUP_VALUE: Self = Self(ffi::GPG_ERR_DUP_VALUE); pub const MISSING_ACTION: Self = Self(ffi::GPG_ERR_MISSING_ACTION); pub const MODULE_NOT_FOUND: Self = Self(ffi::GPG_ERR_MODULE_NOT_FOUND); pub const INV_OID_STRING: Self = Self(ffi::GPG_ERR_INV_OID_STRING); pub const INV_TIME: Self = Self(ffi::GPG_ERR_INV_TIME); pub const INV_CRL_OBJ: Self = Self(ffi::GPG_ERR_INV_CRL_OBJ); pub const UNSUPPORTED_CRL_VERSION: Self = Self(ffi::GPG_ERR_UNSUPPORTED_CRL_VERSION); pub const INV_CERT_OBJ: Self = Self(ffi::GPG_ERR_INV_CERT_OBJ); pub const UNKNOWN_NAME: Self = Self(ffi::GPG_ERR_UNKNOWN_NAME); pub const LOCALE_PROBLEM: Self = Self(ffi::GPG_ERR_LOCALE_PROBLEM); pub const NOT_LOCKED: Self = Self(ffi::GPG_ERR_NOT_LOCKED); pub const PROTOCOL_VIOLATION: Self = Self(ffi::GPG_ERR_PROTOCOL_VIOLATION); pub const INV_MAC: Self = Self(ffi::GPG_ERR_INV_MAC); pub const INV_REQUEST: Self = Self(ffi::GPG_ERR_INV_REQUEST); pub const UNKNOWN_EXTN: Self = Self(ffi::GPG_ERR_UNKNOWN_EXTN); pub const UNKNOWN_CRIT_EXTN: Self = Self(ffi::GPG_ERR_UNKNOWN_CRIT_EXTN); pub const LOCKED: Self = Self(ffi::GPG_ERR_LOCKED); pub const UNKNOWN_OPTION: Self = Self(ffi::GPG_ERR_UNKNOWN_OPTION); pub const UNKNOWN_COMMAND: Self = Self(ffi::GPG_ERR_UNKNOWN_COMMAND); pub const NOT_OPERATIONAL: Self = Self(ffi::GPG_ERR_NOT_OPERATIONAL); pub const NO_PASSPHRASE: Self = Self(ffi::GPG_ERR_NO_PASSPHRASE); pub const NO_PIN: Self = Self(ffi::GPG_ERR_NO_PIN); pub const NOT_ENABLED: Self = Self(ffi::GPG_ERR_NOT_ENABLED); pub const NO_ENGINE: Self = Self(ffi::GPG_ERR_NO_ENGINE); pub const MISSING_KEY: Self = Self(ffi::GPG_ERR_MISSING_KEY); pub const TOO_MANY: Self = Self(ffi::GPG_ERR_TOO_MANY); pub const LIMIT_REACHED: Self = Self(ffi::GPG_ERR_LIMIT_REACHED); pub const NOT_INITIALIZED: Self = Self(ffi::GPG_ERR_NOT_INITIALIZED); pub const MISSING_ISSUER_CERT: Self = Self(ffi::GPG_ERR_MISSING_ISSUER_CERT); pub const NO_KEYSERVER: Self = Self(ffi::GPG_ERR_NO_KEYSERVER); pub const INV_CURVE: Self = Self(ffi::GPG_ERR_INV_CURVE); pub const UNKNOWN_CURVE: Self = Self(ffi::GPG_ERR_UNKNOWN_CURVE); pub const DUP_KEY: Self = Self(ffi::GPG_ERR_DUP_KEY); pub const AMBIGUOUS: Self = Self(ffi::GPG_ERR_AMBIGUOUS); pub const NO_CRYPT_CTX: Self = Self(ffi::GPG_ERR_NO_CRYPT_CTX); pub const WRONG_CRYPT_CTX: Self = Self(ffi::GPG_ERR_WRONG_CRYPT_CTX); pub const BAD_CRYPT_CTX: Self = Self(ffi::GPG_ERR_BAD_CRYPT_CTX); pub const CRYPT_CTX_CONFLICT: Self = Self(ffi::GPG_ERR_CRYPT_CTX_CONFLICT); pub const BROKEN_PUBKEY: Self = Self(ffi::GPG_ERR_BROKEN_PUBKEY); pub const BROKEN_SECKEY: Self = Self(ffi::GPG_ERR_BROKEN_SECKEY); pub const MAC_ALGO: Self = Self(ffi::GPG_ERR_MAC_ALGO); pub const FULLY_CANCELED: Self = Self(ffi::GPG_ERR_FULLY_CANCELED); pub const UNFINISHED: Self = Self(ffi::GPG_ERR_UNFINISHED); pub const BUFFER_TOO_SHORT: Self = Self(ffi::GPG_ERR_BUFFER_TOO_SHORT); pub const SEXP_INV_LEN_SPEC: Self = Self(ffi::GPG_ERR_SEXP_INV_LEN_SPEC); pub const SEXP_STRING_TOO_LONG: Self = Self(ffi::GPG_ERR_SEXP_STRING_TOO_LONG); pub const SEXP_UNMATCHED_PAREN: Self = Self(ffi::GPG_ERR_SEXP_UNMATCHED_PAREN); pub const SEXP_NOT_CANONICAL: Self = Self(ffi::GPG_ERR_SEXP_NOT_CANONICAL); pub const SEXP_BAD_CHARACTER: Self = Self(ffi::GPG_ERR_SEXP_BAD_CHARACTER); pub const SEXP_BAD_QUOTATION: Self = Self(ffi::GPG_ERR_SEXP_BAD_QUOTATION); pub const SEXP_ZERO_PREFIX: Self = Self(ffi::GPG_ERR_SEXP_ZERO_PREFIX); pub const SEXP_NESTED_DH: Self = Self(ffi::GPG_ERR_SEXP_NESTED_DH); pub const SEXP_UNMATCHED_DH: Self = Self(ffi::GPG_ERR_SEXP_UNMATCHED_DH); pub const SEXP_UNEXPECTED_PUNC: Self = Self(ffi::GPG_ERR_SEXP_UNEXPECTED_PUNC); pub const SEXP_BAD_HEX_CHAR: Self = Self(ffi::GPG_ERR_SEXP_BAD_HEX_CHAR); pub const SEXP_ODD_HEX_NUMBERS: Self = Self(ffi::GPG_ERR_SEXP_ODD_HEX_NUMBERS); pub const SEXP_BAD_OCT_CHAR: Self = Self(ffi::GPG_ERR_SEXP_BAD_OCT_CHAR); pub const SUBKEYS_EXP_OR_REV: Self = Self(ffi::GPG_ERR_SUBKEYS_EXP_OR_REV); pub const DB_CORRUPTED: Self = Self(ffi::GPG_ERR_DB_CORRUPTED); pub const SERVER_FAILED: Self = Self(ffi::GPG_ERR_SERVER_FAILED); pub const NO_NAME: Self = Self(ffi::GPG_ERR_NO_NAME); pub const NO_KEY: Self = Self(ffi::GPG_ERR_NO_KEY); pub const LEGACY_KEY: Self = Self(ffi::GPG_ERR_LEGACY_KEY); pub const REQUEST_TOO_SHORT: Self = Self(ffi::GPG_ERR_REQUEST_TOO_SHORT); pub const REQUEST_TOO_LONG: Self = Self(ffi::GPG_ERR_REQUEST_TOO_LONG); pub const OBJ_TERM_STATE: Self = Self(ffi::GPG_ERR_OBJ_TERM_STATE); pub const NO_CERT_CHAIN: Self = Self(ffi::GPG_ERR_NO_CERT_CHAIN); pub const CERT_TOO_LARGE: Self = Self(ffi::GPG_ERR_CERT_TOO_LARGE); pub const INV_RECORD: Self = Self(ffi::GPG_ERR_INV_RECORD); pub const BAD_MAC: Self = Self(ffi::GPG_ERR_BAD_MAC); pub const UNEXPECTED_MSG: Self = Self(ffi::GPG_ERR_UNEXPECTED_MSG); pub const COMPR_FAILED: Self = Self(ffi::GPG_ERR_COMPR_FAILED); pub const WOULD_WRAP: Self = Self(ffi::GPG_ERR_WOULD_WRAP); pub const FATAL_ALERT: Self = Self(ffi::GPG_ERR_FATAL_ALERT); pub const NO_CIPHER: Self = Self(ffi::GPG_ERR_NO_CIPHER); pub const MISSING_CLIENT_CERT: Self = Self(ffi::GPG_ERR_MISSING_CLIENT_CERT); pub const CLOSE_NOTIFY: Self = Self(ffi::GPG_ERR_CLOSE_NOTIFY); pub const TICKET_EXPIRED: Self = Self(ffi::GPG_ERR_TICKET_EXPIRED); pub const BAD_TICKET: Self = Self(ffi::GPG_ERR_BAD_TICKET); pub const UNKNOWN_IDENTITY: Self = Self(ffi::GPG_ERR_UNKNOWN_IDENTITY); pub const BAD_HS_CERT: Self = Self(ffi::GPG_ERR_BAD_HS_CERT); pub const BAD_HS_CERT_REQ: Self = Self(ffi::GPG_ERR_BAD_HS_CERT_REQ); pub const BAD_HS_CERT_VER: Self = Self(ffi::GPG_ERR_BAD_HS_CERT_VER); pub const BAD_HS_CHANGE_CIPHER: Self = Self(ffi::GPG_ERR_BAD_HS_CHANGE_CIPHER); pub const BAD_HS_CLIENT_HELLO: Self = Self(ffi::GPG_ERR_BAD_HS_CLIENT_HELLO); pub const BAD_HS_SERVER_HELLO: Self = Self(ffi::GPG_ERR_BAD_HS_SERVER_HELLO); pub const BAD_HS_SERVER_HELLO_DONE: Self = Self(ffi::GPG_ERR_BAD_HS_SERVER_HELLO_DONE); pub const BAD_HS_FINISHED: Self = Self(ffi::GPG_ERR_BAD_HS_FINISHED); pub const BAD_HS_SERVER_KEX: Self = Self(ffi::GPG_ERR_BAD_HS_SERVER_KEX); pub const BAD_HS_CLIENT_KEX: Self = Self(ffi::GPG_ERR_BAD_HS_CLIENT_KEX); pub const BOGUS_STRING: Self = Self(ffi::GPG_ERR_BOGUS_STRING); pub const FORBIDDEN: Self = Self(ffi::GPG_ERR_FORBIDDEN); pub const KEY_DISABLED: Self = Self(ffi::GPG_ERR_KEY_DISABLED); pub const KEY_ON_CARD: Self = Self(ffi::GPG_ERR_KEY_ON_CARD); pub const INV_LOCK_OBJ: Self = Self(ffi::GPG_ERR_INV_LOCK_OBJ); pub const TRUE: Self = Self(ffi::GPG_ERR_TRUE); pub const FALSE: Self = Self(ffi::GPG_ERR_FALSE); pub const ASS_GENERAL: Self = Self(ffi::GPG_ERR_ASS_GENERAL); pub const ASS_ACCEPT_FAILED: Self = Self(ffi::GPG_ERR_ASS_ACCEPT_FAILED); pub const ASS_CONNECT_FAILED: Self = Self(ffi::GPG_ERR_ASS_CONNECT_FAILED); pub const ASS_INV_RESPONSE: Self = Self(ffi::GPG_ERR_ASS_INV_RESPONSE); pub const ASS_INV_VALUE: Self = Self(ffi::GPG_ERR_ASS_INV_VALUE); pub const ASS_INCOMPLETE_LINE: Self = Self(ffi::GPG_ERR_ASS_INCOMPLETE_LINE); pub const ASS_LINE_TOO_LONG: Self = Self(ffi::GPG_ERR_ASS_LINE_TOO_LONG); pub const ASS_NESTED_COMMANDS: Self = Self(ffi::GPG_ERR_ASS_NESTED_COMMANDS); pub const ASS_NO_DATA_CB: Self = Self(ffi::GPG_ERR_ASS_NO_DATA_CB); pub const ASS_NO_INQUIRE_CB: Self = Self(ffi::GPG_ERR_ASS_NO_INQUIRE_CB); pub const ASS_NOT_A_SERVER: Self = Self(ffi::GPG_ERR_ASS_NOT_A_SERVER); pub const ASS_NOT_A_CLIENT: Self = Self(ffi::GPG_ERR_ASS_NOT_A_CLIENT); pub const ASS_SERVER_START: Self = Self(ffi::GPG_ERR_ASS_SERVER_START); pub const ASS_READ_ERROR: Self = Self(ffi::GPG_ERR_ASS_READ_ERROR); pub const ASS_WRITE_ERROR: Self = Self(ffi::GPG_ERR_ASS_WRITE_ERROR); pub const ASS_TOO_MUCH_DATA: Self = Self(ffi::GPG_ERR_ASS_TOO_MUCH_DATA); pub const ASS_UNEXPECTED_CMD: Self = Self(ffi::GPG_ERR_ASS_UNEXPECTED_CMD); pub const ASS_UNKNOWN_CMD: Self = Self(ffi::GPG_ERR_ASS_UNKNOWN_CMD); pub const ASS_SYNTAX: Self = Self(ffi::GPG_ERR_ASS_SYNTAX); pub const ASS_CANCELED: Self = Self(ffi::GPG_ERR_ASS_CANCELED); pub const ASS_NO_INPUT: Self = Self(ffi::GPG_ERR_ASS_NO_INPUT); pub const ASS_NO_OUTPUT: Self = Self(ffi::GPG_ERR_ASS_NO_OUTPUT); pub const ASS_PARAMETER: Self = Self(ffi::GPG_ERR_ASS_PARAMETER); pub const ASS_UNKNOWN_INQUIRE: Self = Self(ffi::GPG_ERR_ASS_UNKNOWN_INQUIRE); pub const ENGINE_TOO_OLD: Self = Self(ffi::GPG_ERR_ENGINE_TOO_OLD); pub const WINDOW_TOO_SMALL: Self = Self(ffi::GPG_ERR_WINDOW_TOO_SMALL); pub const WINDOW_TOO_LARGE: Self = Self(ffi::GPG_ERR_WINDOW_TOO_LARGE); pub const MISSING_ENVVAR: Self = Self(ffi::GPG_ERR_MISSING_ENVVAR); pub const USER_ID_EXISTS: Self = Self(ffi::GPG_ERR_USER_ID_EXISTS); pub const NAME_EXISTS: Self = Self(ffi::GPG_ERR_NAME_EXISTS); pub const DUP_NAME: Self = Self(ffi::GPG_ERR_DUP_NAME); pub const TOO_YOUNG: Self = Self(ffi::GPG_ERR_TOO_YOUNG); pub const TOO_OLD: Self = Self(ffi::GPG_ERR_TOO_OLD); pub const UNKNOWN_FLAG: Self = Self(ffi::GPG_ERR_UNKNOWN_FLAG); pub const INV_ORDER: Self = Self(ffi::GPG_ERR_INV_ORDER); pub const ALREADY_FETCHED: Self = Self(ffi::GPG_ERR_ALREADY_FETCHED); pub const TRY_LATER: Self = Self(ffi::GPG_ERR_TRY_LATER); pub const WRONG_NAME: Self = Self(ffi::GPG_ERR_WRONG_NAME); pub const NO_AUTH: Self = Self(ffi::GPG_ERR_NO_AUTH); pub const BAD_AUTH: Self = Self(ffi::GPG_ERR_BAD_AUTH); pub const SYSTEM_BUG: Self = Self(ffi::GPG_ERR_SYSTEM_BUG); pub const DNS_UNKNOWN: Self = Self(ffi::GPG_ERR_DNS_UNKNOWN); pub const DNS_SECTION: Self = Self(ffi::GPG_ERR_DNS_SECTION); pub const DNS_ADDRESS: Self = Self(ffi::GPG_ERR_DNS_ADDRESS); pub const DNS_NO_QUERY: Self = Self(ffi::GPG_ERR_DNS_NO_QUERY); pub const DNS_NO_ANSWER: Self = Self(ffi::GPG_ERR_DNS_NO_ANSWER); pub const DNS_CLOSED: Self = Self(ffi::GPG_ERR_DNS_CLOSED); pub const DNS_VERIFY: Self = Self(ffi::GPG_ERR_DNS_VERIFY); pub const DNS_TIMEOUT: Self = Self(ffi::GPG_ERR_DNS_TIMEOUT); pub const LDAP_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_GENERAL); pub const LDAP_ATTR_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_ATTR_GENERAL); pub const LDAP_NAME_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_NAME_GENERAL); pub const LDAP_SECURITY_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_SECURITY_GENERAL); pub const LDAP_SERVICE_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_SERVICE_GENERAL); pub const LDAP_UPDATE_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_UPDATE_GENERAL); pub const LDAP_E_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_E_GENERAL); pub const LDAP_X_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_X_GENERAL); pub const LDAP_OTHER_GENERAL: Self = Self(ffi::GPG_ERR_LDAP_OTHER_GENERAL); pub const LDAP_X_CONNECTING: Self = Self(ffi::GPG_ERR_LDAP_X_CONNECTING); pub const LDAP_REFERRAL_LIMIT: Self = Self(ffi::GPG_ERR_LDAP_REFERRAL_LIMIT); pub const LDAP_CLIENT_LOOP: Self = Self(ffi::GPG_ERR_LDAP_CLIENT_LOOP); pub const LDAP_NO_RESULTS: Self = Self(ffi::GPG_ERR_LDAP_NO_RESULTS); pub const LDAP_CONTROL_NOT_FOUND: Self = Self(ffi::GPG_ERR_LDAP_CONTROL_NOT_FOUND); pub const LDAP_NOT_SUPPORTED: Self = Self(ffi::GPG_ERR_LDAP_NOT_SUPPORTED); pub const LDAP_CONNECT: Self = Self(ffi::GPG_ERR_LDAP_CONNECT); pub const LDAP_NO_MEMORY: Self = Self(ffi::GPG_ERR_LDAP_NO_MEMORY); pub const LDAP_PARAM: Self = Self(ffi::GPG_ERR_LDAP_PARAM); pub const LDAP_USER_CANCELLED: Self = Self(ffi::GPG_ERR_LDAP_USER_CANCELLED); pub const LDAP_FILTER: Self = Self(ffi::GPG_ERR_LDAP_FILTER); pub const LDAP_AUTH_UNKNOWN: Self = Self(ffi::GPG_ERR_LDAP_AUTH_UNKNOWN); pub const LDAP_TIMEOUT: Self = Self(ffi::GPG_ERR_LDAP_TIMEOUT); pub const LDAP_DECODING: Self = Self(ffi::GPG_ERR_LDAP_DECODING); pub const LDAP_ENCODING: Self = Self(ffi::GPG_ERR_LDAP_ENCODING); pub const LDAP_LOCAL: Self = Self(ffi::GPG_ERR_LDAP_LOCAL); pub const LDAP_SERVER_DOWN: Self = Self(ffi::GPG_ERR_LDAP_SERVER_DOWN); pub const LDAP_SUCCESS: Self = Self(ffi::GPG_ERR_LDAP_SUCCESS); pub const LDAP_OPERATIONS: Self = Self(ffi::GPG_ERR_LDAP_OPERATIONS); pub const LDAP_PROTOCOL: Self = Self(ffi::GPG_ERR_LDAP_PROTOCOL); pub const LDAP_TIMELIMIT: Self = Self(ffi::GPG_ERR_LDAP_TIMELIMIT); pub const LDAP_SIZELIMIT: Self = Self(ffi::GPG_ERR_LDAP_SIZELIMIT); pub const LDAP_COMPARE_FALSE: Self = Self(ffi::GPG_ERR_LDAP_COMPARE_FALSE); pub const LDAP_COMPARE_TRUE: Self = Self(ffi::GPG_ERR_LDAP_COMPARE_TRUE); pub const LDAP_UNSUPPORTED_AUTH: Self = Self(ffi::GPG_ERR_LDAP_UNSUPPORTED_AUTH); pub const LDAP_STRONG_AUTH_RQRD: Self = Self(ffi::GPG_ERR_LDAP_STRONG_AUTH_RQRD); pub const LDAP_PARTIAL_RESULTS: Self = Self(ffi::GPG_ERR_LDAP_PARTIAL_RESULTS); pub const LDAP_REFERRAL: Self = Self(ffi::GPG_ERR_LDAP_REFERRAL); pub const LDAP_ADMINLIMIT: Self = Self(ffi::GPG_ERR_LDAP_ADMINLIMIT); pub const LDAP_UNAVAIL_CRIT_EXTN: Self = Self(ffi::GPG_ERR_LDAP_UNAVAIL_CRIT_EXTN); pub const LDAP_CONFIDENT_RQRD: Self = Self(ffi::GPG_ERR_LDAP_CONFIDENT_RQRD); pub const LDAP_SASL_BIND_INPROG: Self = Self(ffi::GPG_ERR_LDAP_SASL_BIND_INPROG); pub const LDAP_NO_SUCH_ATTRIBUTE: Self = Self(ffi::GPG_ERR_LDAP_NO_SUCH_ATTRIBUTE); pub const LDAP_UNDEFINED_TYPE: Self = Self(ffi::GPG_ERR_LDAP_UNDEFINED_TYPE); pub const LDAP_BAD_MATCHING: Self = Self(ffi::GPG_ERR_LDAP_BAD_MATCHING); pub const LDAP_CONST_VIOLATION: Self = Self(ffi::GPG_ERR_LDAP_CONST_VIOLATION); pub const LDAP_TYPE_VALUE_EXISTS: Self = Self(ffi::GPG_ERR_LDAP_TYPE_VALUE_EXISTS); pub const LDAP_INV_SYNTAX: Self = Self(ffi::GPG_ERR_LDAP_INV_SYNTAX); pub const LDAP_NO_SUCH_OBJ: Self = Self(ffi::GPG_ERR_LDAP_NO_SUCH_OBJ); pub const LDAP_ALIAS_PROBLEM: Self = Self(ffi::GPG_ERR_LDAP_ALIAS_PROBLEM); pub const LDAP_INV_DN_SYNTAX: Self = Self(ffi::GPG_ERR_LDAP_INV_DN_SYNTAX); pub const LDAP_IS_LEAF: Self = Self(ffi::GPG_ERR_LDAP_IS_LEAF); pub const LDAP_ALIAS_DEREF: Self = Self(ffi::GPG_ERR_LDAP_ALIAS_DEREF); pub const LDAP_X_PROXY_AUTH_FAIL: Self = Self(ffi::GPG_ERR_LDAP_X_PROXY_AUTH_FAIL); pub const LDAP_BAD_AUTH: Self = Self(ffi::GPG_ERR_LDAP_BAD_AUTH); pub const LDAP_INV_CREDENTIALS: Self = Self(ffi::GPG_ERR_LDAP_INV_CREDENTIALS); pub const LDAP_INSUFFICIENT_ACC: Self = Self(ffi::GPG_ERR_LDAP_INSUFFICIENT_ACC); pub const LDAP_BUSY: Self = Self(ffi::GPG_ERR_LDAP_BUSY); pub const LDAP_UNAVAILABLE: Self = Self(ffi::GPG_ERR_LDAP_UNAVAILABLE); pub const LDAP_UNWILL_TO_PERFORM: Self = Self(ffi::GPG_ERR_LDAP_UNWILL_TO_PERFORM); pub const LDAP_LOOP_DETECT: Self = Self(ffi::GPG_ERR_LDAP_LOOP_DETECT); pub const LDAP_NAMING_VIOLATION: Self = Self(ffi::GPG_ERR_LDAP_NAMING_VIOLATION); pub const LDAP_OBJ_CLS_VIOLATION: Self = Self(ffi::GPG_ERR_LDAP_OBJ_CLS_VIOLATION); pub const LDAP_NOT_ALLOW_NONLEAF: Self = Self(ffi::GPG_ERR_LDAP_NOT_ALLOW_NONLEAF); pub const LDAP_NOT_ALLOW_ON_RDN: Self = Self(ffi::GPG_ERR_LDAP_NOT_ALLOW_ON_RDN); pub const LDAP_ALREADY_EXISTS: Self = Self(ffi::GPG_ERR_LDAP_ALREADY_EXISTS); pub const LDAP_NO_OBJ_CLASS_MODS: Self = Self(ffi::GPG_ERR_LDAP_NO_OBJ_CLASS_MODS); pub const LDAP_RESULTS_TOO_LARGE: Self = Self(ffi::GPG_ERR_LDAP_RESULTS_TOO_LARGE); pub const LDAP_AFFECTS_MULT_DSAS: Self = Self(ffi::GPG_ERR_LDAP_AFFECTS_MULT_DSAS); pub const LDAP_VLV: Self = Self(ffi::GPG_ERR_LDAP_VLV); pub const LDAP_OTHER: Self = Self(ffi::GPG_ERR_LDAP_OTHER); pub const LDAP_CUP_RESOURCE_LIMIT: Self = Self(ffi::GPG_ERR_LDAP_CUP_RESOURCE_LIMIT); pub const LDAP_CUP_SEC_VIOLATION: Self = Self(ffi::GPG_ERR_LDAP_CUP_SEC_VIOLATION); pub const LDAP_CUP_INV_DATA: Self = Self(ffi::GPG_ERR_LDAP_CUP_INV_DATA); pub const LDAP_CUP_UNSUP_SCHEME: Self = Self(ffi::GPG_ERR_LDAP_CUP_UNSUP_SCHEME); pub const LDAP_CUP_RELOAD: Self = Self(ffi::GPG_ERR_LDAP_CUP_RELOAD); pub const LDAP_CANCELLED: Self = Self(ffi::GPG_ERR_LDAP_CANCELLED); pub const LDAP_NO_SUCH_OPERATION: Self = Self(ffi::GPG_ERR_LDAP_NO_SUCH_OPERATION); pub const LDAP_TOO_LATE: Self = Self(ffi::GPG_ERR_LDAP_TOO_LATE); pub const LDAP_CANNOT_CANCEL: Self = Self(ffi::GPG_ERR_LDAP_CANNOT_CANCEL); pub const LDAP_ASSERTION_FAILED: Self = Self(ffi::GPG_ERR_LDAP_ASSERTION_FAILED); pub const LDAP_PROX_AUTH_DENIED: Self = Self(ffi::GPG_ERR_LDAP_PROX_AUTH_DENIED); pub const USER_1: Self = Self(ffi::GPG_ERR_USER_1); pub const USER_2: Self = Self(ffi::GPG_ERR_USER_2); pub const USER_3: Self = Self(ffi::GPG_ERR_USER_3); pub const USER_4: Self = Self(ffi::GPG_ERR_USER_4); pub const USER_5: Self = Self(ffi::GPG_ERR_USER_5); pub const USER_6: Self = Self(ffi::GPG_ERR_USER_6); pub const USER_7: Self = Self(ffi::GPG_ERR_USER_7); pub const USER_8: Self = Self(ffi::GPG_ERR_USER_8); pub const USER_9: Self = Self(ffi::GPG_ERR_USER_9); pub const USER_10: Self = Self(ffi::GPG_ERR_USER_10); pub const USER_11: Self = Self(ffi::GPG_ERR_USER_11); pub const USER_12: Self = Self(ffi::GPG_ERR_USER_12); pub const USER_13: Self = Self(ffi::GPG_ERR_USER_13); pub const USER_14: Self = Self(ffi::GPG_ERR_USER_14); pub const USER_15: Self = Self(ffi::GPG_ERR_USER_15); pub const USER_16: Self = Self(ffi::GPG_ERR_USER_16); pub const MISSING_ERRNO: Self = Self(ffi::GPG_ERR_MISSING_ERRNO); pub const UNKNOWN_ERRNO: Self = Self(ffi::GPG_ERR_UNKNOWN_ERRNO); pub const EOF: Self = Self(ffi::GPG_ERR_EOF); pub const E2BIG: Self = Self(ffi::GPG_ERR_E2BIG); pub const EACCES: Self = Self(ffi::GPG_ERR_EACCES); pub const EADDRINUSE: Self = Self(ffi::GPG_ERR_EADDRINUSE); pub const EADDRNOTAVAIL: Self = Self(ffi::GPG_ERR_EADDRNOTAVAIL); pub const EADV: Self = Self(ffi::GPG_ERR_EADV); pub const EAFNOSUPPORT: Self = Self(ffi::GPG_ERR_EAFNOSUPPORT); pub const EAGAIN: Self = Self(ffi::GPG_ERR_EAGAIN); pub const EALREADY: Self = Self(ffi::GPG_ERR_EALREADY); pub const EAUTH: Self = Self(ffi::GPG_ERR_EAUTH); pub const EBACKGROUND: Self = Self(ffi::GPG_ERR_EBACKGROUND); pub const EBADE: Self = Self(ffi::GPG_ERR_EBADE); pub const EBADF: Self = Self(ffi::GPG_ERR_EBADF); pub const EBADFD: Self = Self(ffi::GPG_ERR_EBADFD); pub const EBADMSG: Self = Self(ffi::GPG_ERR_EBADMSG); pub const EBADR: Self = Self(ffi::GPG_ERR_EBADR); pub const EBADRPC: Self = Self(ffi::GPG_ERR_EBADRPC); pub const EBADRQC: Self = Self(ffi::GPG_ERR_EBADRQC); pub const EBADSLT: Self = Self(ffi::GPG_ERR_EBADSLT); pub const EBFONT: Self = Self(ffi::GPG_ERR_EBFONT); pub const EBUSY: Self = Self(ffi::GPG_ERR_EBUSY); pub const ECANCELED: Self = Self(ffi::GPG_ERR_ECANCELED); pub const ECHILD: Self = Self(ffi::GPG_ERR_ECHILD); pub const ECHRNG: Self = Self(ffi::GPG_ERR_ECHRNG); pub const ECOMM: Self = Self(ffi::GPG_ERR_ECOMM); pub const ECONNABORTED: Self = Self(ffi::GPG_ERR_ECONNABORTED); pub const ECONNREFUSED: Self = Self(ffi::GPG_ERR_ECONNREFUSED); pub const ECONNRESET: Self = Self(ffi::GPG_ERR_ECONNRESET); pub const ED: Self = Self(ffi::GPG_ERR_ED); pub const EDEADLK: Self = Self(ffi::GPG_ERR_EDEADLK); pub const EDEADLOCK: Self = Self(ffi::GPG_ERR_EDEADLOCK); pub const EDESTADDRREQ: Self = Self(ffi::GPG_ERR_EDESTADDRREQ); pub const EDIED: Self = Self(ffi::GPG_ERR_EDIED); pub const EDOM: Self = Self(ffi::GPG_ERR_EDOM); pub const EDOTDOT: Self = Self(ffi::GPG_ERR_EDOTDOT); pub const EDQUOT: Self = Self(ffi::GPG_ERR_EDQUOT); pub const EEXIST: Self = Self(ffi::GPG_ERR_EEXIST); pub const EFAULT: Self = Self(ffi::GPG_ERR_EFAULT); pub const EFBIG: Self = Self(ffi::GPG_ERR_EFBIG); pub const EFTYPE: Self = Self(ffi::GPG_ERR_EFTYPE); pub const EGRATUITOUS: Self = Self(ffi::GPG_ERR_EGRATUITOUS); pub const EGREGIOUS: Self = Self(ffi::GPG_ERR_EGREGIOUS); pub const EHOSTDOWN: Self = Self(ffi::GPG_ERR_EHOSTDOWN); pub const EHOSTUNREACH: Self = Self(ffi::GPG_ERR_EHOSTUNREACH); pub const EIDRM: Self = Self(ffi::GPG_ERR_EIDRM); pub const EIEIO: Self = Self(ffi::GPG_ERR_EIEIO); pub const EILSEQ: Self = Self(ffi::GPG_ERR_EILSEQ); pub const EINPROGRESS: Self = Self(ffi::GPG_ERR_EINPROGRESS); pub const EINTR: Self = Self(ffi::GPG_ERR_EINTR); pub const EINVAL: Self = Self(ffi::GPG_ERR_EINVAL); pub const EIO: Self = Self(ffi::GPG_ERR_EIO); pub const EISCONN: Self = Self(ffi::GPG_ERR_EISCONN); pub const EISDIR: Self = Self(ffi::GPG_ERR_EISDIR); pub const EISNAM: Self = Self(ffi::GPG_ERR_EISNAM); pub const EL2HLT: Self = Self(ffi::GPG_ERR_EL2HLT); pub const EL2NSYNC: Self = Self(ffi::GPG_ERR_EL2NSYNC); pub const EL3HLT: Self = Self(ffi::GPG_ERR_EL3HLT); pub const EL3RST: Self = Self(ffi::GPG_ERR_EL3RST); pub const ELIBACC: Self = Self(ffi::GPG_ERR_ELIBACC); pub const ELIBBAD: Self = Self(ffi::GPG_ERR_ELIBBAD); pub const ELIBEXEC: Self = Self(ffi::GPG_ERR_ELIBEXEC); pub const ELIBMAX: Self = Self(ffi::GPG_ERR_ELIBMAX); pub const ELIBSCN: Self = Self(ffi::GPG_ERR_ELIBSCN); pub const ELNRNG: Self = Self(ffi::GPG_ERR_ELNRNG); pub const ELOOP: Self = Self(ffi::GPG_ERR_ELOOP); pub const EMEDIUMTYPE: Self = Self(ffi::GPG_ERR_EMEDIUMTYPE); pub const EMFILE: Self = Self(ffi::GPG_ERR_EMFILE); pub const EMLINK: Self = Self(ffi::GPG_ERR_EMLINK); pub const EMSGSIZE: Self = Self(ffi::GPG_ERR_EMSGSIZE); pub const EMULTIHOP: Self = Self(ffi::GPG_ERR_EMULTIHOP); pub const ENAMETOOLONG: Self = Self(ffi::GPG_ERR_ENAMETOOLONG); pub const ENAVAIL: Self = Self(ffi::GPG_ERR_ENAVAIL); pub const ENEEDAUTH: Self = Self(ffi::GPG_ERR_ENEEDAUTH); pub const ENETDOWN: Self = Self(ffi::GPG_ERR_ENETDOWN); pub const ENETRESET: Self = Self(ffi::GPG_ERR_ENETRESET); pub const ENETUNREACH: Self = Self(ffi::GPG_ERR_ENETUNREACH); pub const ENFILE: Self = Self(ffi::GPG_ERR_ENFILE); pub const ENOANO: Self = Self(ffi::GPG_ERR_ENOANO); pub const ENOBUFS: Self = Self(ffi::GPG_ERR_ENOBUFS); pub const ENOCSI: Self = Self(ffi::GPG_ERR_ENOCSI); pub const ENODATA: Self = Self(ffi::GPG_ERR_ENODATA); pub const ENODEV: Self = Self(ffi::GPG_ERR_ENODEV); pub const ENOENT: Self = Self(ffi::GPG_ERR_ENOENT); pub const ENOEXEC: Self = Self(ffi::GPG_ERR_ENOEXEC); pub const ENOLCK: Self = Self(ffi::GPG_ERR_ENOLCK); pub const ENOLINK: Self = Self(ffi::GPG_ERR_ENOLINK); pub const ENOMEDIUM: Self = Self(ffi::GPG_ERR_ENOMEDIUM); pub const ENOMEM: Self = Self(ffi::GPG_ERR_ENOMEM); pub const ENOMSG: Self = Self(ffi::GPG_ERR_ENOMSG); pub const ENONET: Self = Self(ffi::GPG_ERR_ENONET); pub const ENOPKG: Self = Self(ffi::GPG_ERR_ENOPKG); pub const ENOPROTOOPT: Self = Self(ffi::GPG_ERR_ENOPROTOOPT); pub const ENOSPC: Self = Self(ffi::GPG_ERR_ENOSPC); pub const ENOSR: Self = Self(ffi::GPG_ERR_ENOSR); pub const ENOSTR: Self = Self(ffi::GPG_ERR_ENOSTR); pub const ENOSYS: Self = Self(ffi::GPG_ERR_ENOSYS); pub const ENOTBLK: Self = Self(ffi::GPG_ERR_ENOTBLK); pub const ENOTCONN: Self = Self(ffi::GPG_ERR_ENOTCONN); pub const ENOTDIR: Self = Self(ffi::GPG_ERR_ENOTDIR); pub const ENOTEMPTY: Self = Self(ffi::GPG_ERR_ENOTEMPTY); pub const ENOTNAM: Self = Self(ffi::GPG_ERR_ENOTNAM); pub const ENOTSOCK: Self = Self(ffi::GPG_ERR_ENOTSOCK); pub const ENOTSUP: Self = Self(ffi::GPG_ERR_ENOTSUP); pub const ENOTTY: Self = Self(ffi::GPG_ERR_ENOTTY); pub const ENOTUNIQ: Self = Self(ffi::GPG_ERR_ENOTUNIQ); pub const ENXIO: Self = Self(ffi::GPG_ERR_ENXIO); pub const EOPNOTSUPP: Self = Self(ffi::GPG_ERR_EOPNOTSUPP); pub const EOVERFLOW: Self = Self(ffi::GPG_ERR_EOVERFLOW); pub const EPERM: Self = Self(ffi::GPG_ERR_EPERM); pub const EPFNOSUPPORT: Self = Self(ffi::GPG_ERR_EPFNOSUPPORT); pub const EPIPE: Self = Self(ffi::GPG_ERR_EPIPE); pub const EPROCLIM: Self = Self(ffi::GPG_ERR_EPROCLIM); pub const EPROCUNAVAIL: Self = Self(ffi::GPG_ERR_EPROCUNAVAIL); pub const EPROGMISMATCH: Self = Self(ffi::GPG_ERR_EPROGMISMATCH); pub const EPROGUNAVAIL: Self = Self(ffi::GPG_ERR_EPROGUNAVAIL); pub const EPROTO: Self = Self(ffi::GPG_ERR_EPROTO); pub const EPROTONOSUPPORT: Self = Self(ffi::GPG_ERR_EPROTONOSUPPORT); pub const EPROTOTYPE: Self = Self(ffi::GPG_ERR_EPROTOTYPE); pub const ERANGE: Self = Self(ffi::GPG_ERR_ERANGE); pub const EREMCHG: Self = Self(ffi::GPG_ERR_EREMCHG); pub const EREMOTE: Self = Self(ffi::GPG_ERR_EREMOTE); pub const EREMOTEIO: Self = Self(ffi::GPG_ERR_EREMOTEIO); pub const ERESTART: Self = Self(ffi::GPG_ERR_ERESTART); pub const EROFS: Self = Self(ffi::GPG_ERR_EROFS); pub const ERPCMISMATCH: Self = Self(ffi::GPG_ERR_ERPCMISMATCH); pub const ESHUTDOWN: Self = Self(ffi::GPG_ERR_ESHUTDOWN); pub const ESOCKTNOSUPPORT: Self = Self(ffi::GPG_ERR_ESOCKTNOSUPPORT); pub const ESPIPE: Self = Self(ffi::GPG_ERR_ESPIPE); pub const ESRCH: Self = Self(ffi::GPG_ERR_ESRCH); pub const ESRMNT: Self = Self(ffi::GPG_ERR_ESRMNT); pub const ESTALE: Self = Self(ffi::GPG_ERR_ESTALE); pub const ESTRPIPE: Self = Self(ffi::GPG_ERR_ESTRPIPE); pub const ETIME: Self = Self(ffi::GPG_ERR_ETIME); pub const ETIMEDOUT: Self = Self(ffi::GPG_ERR_ETIMEDOUT); pub const ETOOMANYREFS: Self = Self(ffi::GPG_ERR_ETOOMANYREFS); pub const ETXTBSY: Self = Self(ffi::GPG_ERR_ETXTBSY); pub const EUCLEAN: Self = Self(ffi::GPG_ERR_EUCLEAN); pub const EUNATCH: Self = Self(ffi::GPG_ERR_EUNATCH); pub const EUSERS: Self = Self(ffi::GPG_ERR_EUSERS); pub const EWOULDBLOCK: Self = Self(ffi::GPG_ERR_EWOULDBLOCK); pub const EXDEV: Self = Self(ffi::GPG_ERR_EXDEV); pub const EXFULL: Self = Self(ffi::GPG_ERR_EXFULL); } gpg-error-0.6.0/src/lib.rs000064400000000000000000000224051046102023000134410ustar 00000000000000use std::{ borrow::Cow, convert::Infallible, error, ffi::{CStr, NulError}, fmt::{self, Write}, io::{self, ErrorKind}, num::TryFromIntError, os::raw::c_int, result, str, }; pub type ErrorSource = ffi::gpg_err_source_t; pub type ErrorCode = ffi::gpg_err_code_t; /// A type wrapping errors produced by GPG libraries. #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq, Hash)] pub struct Error(ffi::gpg_error_t); include!("consts.rs"); impl Error { /// Creates a new error from a raw error value. #[inline] pub const fn new(err: ffi::gpg_error_t) -> Self { Self(err) } /// Returns the raw error value that this error wraps. #[inline] pub const fn raw(&self) -> ffi::gpg_error_t { self.0 } /// Creates a new error from an error source and an error code. #[inline] pub fn from_source(source: ErrorSource, code: ErrorCode) -> Self { Error::new(ffi::gpg_err_make(source, code)) } /// Creates a new error from an error code using the default /// error source `SOURCE_UNKNOWN`. #[inline] pub fn from_code(code: ErrorCode) -> Self { Error::from_source(Self::SOURCE_UNKNOWN, code) } /// Returns an error representing the last OS error that occurred. #[inline] pub fn last_os_error() -> Self { unsafe { Error::new(ffi::gpg_error_from_syserror()) } } /// Creates a new error from an OS error code. #[inline] pub fn from_errno(code: i32) -> Self { unsafe { Error::new(ffi::gpg_error_from_errno(code as c_int)) } } /// Returns the OS error that this error represents. #[inline] pub fn to_errno(&self) -> i32 { unsafe { ffi::gpg_err_code_to_errno(self.code()) } } /// Returns the error code. #[inline] pub const fn code(&self) -> ErrorCode { ffi::gpg_err_code(self.0) } /// Returns a description of the source of the error as a UTF-8 string. #[inline] pub fn source(&self) -> Option<&'static str> { self.raw_source().and_then(|s| str::from_utf8(s).ok()) } /// Returns an `Error` with the same code from the provided source. #[inline] pub fn with_source(&self, src: ErrorSource) -> Self { Error::from_source(src, self.code()) } /// Returns a description of the source of the error as a slice of bytes. #[inline] pub fn raw_source(&self) -> Option<&'static [u8]> { unsafe { ffi::gpg_strsource(self.0) .as_ref() .map(|s| CStr::from_ptr(s).to_bytes()) } } /// Returns a printable description of the error. #[inline] pub fn description(&self) -> Cow<'static, str> { let mut buf = [0; 1024]; match self.write_description(&mut buf) { Ok(b) => Cow::Owned(String::from_utf8_lossy(b).into_owned()), Err(_) => Cow::Borrowed("Unknown error"), } } /// Returns a description of the error as a slice of bytes. #[inline] pub fn raw_description(&self) -> Cow<'static, [u8]> { let mut buf = [0; 1024]; match self.write_description(&mut buf) { Ok(b) => Cow::Owned(b.to_owned()), Err(_) => Cow::Borrowed(b"Unknown error"), } } /// Writes a description of the error to the provided buffer /// and returns a slice of the buffer containing the description. /// /// # Errors /// /// Returns an error if the provided buffer is not long enough or /// if the error is not recognized. #[inline] pub fn write_description<'r>(&self, buf: &'r mut [u8]) -> result::Result<&'r mut [u8], ()> { let p = buf.as_mut_ptr(); unsafe { if ffi::gpg_strerror_r(self.0, p as *mut _, buf.len()) == 0 { match buf.iter().position(|&b| b == b'\0') { Some(x) => Ok(&mut buf[..x]), None => Ok(buf), } } else { Err(()) } } } } impl From for Error { #[inline] fn from(e: ffi::gpg_error_t) -> Self { Self::new(e) } } impl error::Error for Error { #[inline] fn description(&self) -> &str { "gpg error" } } struct Escaped<'a>(&'a [u8]); impl fmt::Debug for Escaped<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_char('"')?; for b in self.0.iter().flat_map(|&b| ::std::ascii::escape_default(b)) { f.write_char(b as char)?; } f.write_char('"') } } impl fmt::Display for Escaped<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let mut buf = self.0; loop { match str::from_utf8(buf) { Ok(s) => { f.write_str(s)?; break; } Err(e) => { let (valid, broken) = buf.split_at(e.valid_up_to()); f.write_str(unsafe { str::from_utf8_unchecked(valid) })?; f.write_char(::std::char::REPLACEMENT_CHARACTER)?; match e.error_len() { Some(l) => buf = &broken[l..], None => break, } } } } Ok(()) } } impl fmt::Debug for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let mut buf = [0; 1024]; let desc = self .write_description(&mut buf) .map(|x| &*x) .unwrap_or(b"Unknown error"); f.debug_struct("Error") .field("source", &self.source()) .field("code", &self.code()) .field("description", &Escaped(desc)) .finish() } } impl fmt::Display for Error { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { let mut buf = [0; 1024]; let desc = self .write_description(&mut buf) .map(|x| &*x) .unwrap_or(b"Unknown error"); write!(fmt, "{} (gpg error {})", Escaped(desc), self.code()) } } impl From for Error { #[inline] fn from(x: Infallible) -> Self { match x {} } } impl From for Error { #[inline] fn from(_: NulError) -> Self { Self::EINVAL } } impl From for Error { #[inline] fn from(_: TryFromIntError) -> Self { Self::EINVAL } } impl From for Error { fn from(err: io::Error) -> Self { let kind = err.kind(); if let Some(Ok(err)) = err.into_inner().map(|e| e.downcast::()) { *err } else { match kind { ErrorKind::NotFound => Self::ENOENT, ErrorKind::PermissionDenied => Self::EACCES, ErrorKind::ConnectionRefused => Self::ECONNREFUSED, ErrorKind::ConnectionReset => Self::ECONNRESET, ErrorKind::ConnectionAborted => Self::ECONNABORTED, ErrorKind::NotConnected => Self::ENOTCONN, ErrorKind::AddrInUse => Self::EADDRINUSE, ErrorKind::AddrNotAvailable => Self::EADDRNOTAVAIL, ErrorKind::BrokenPipe => Self::EPIPE, ErrorKind::AlreadyExists => Self::EEXIST, ErrorKind::WouldBlock => Self::EWOULDBLOCK, ErrorKind::InvalidInput => Self::EINVAL, ErrorKind::TimedOut => Self::ETIMEDOUT, ErrorKind::Interrupted => Self::EINTR, _ => Error::EIO, } } } } impl From for io::Error { fn from(err: Error) -> Self { let kind = match err.with_source(Error::SOURCE_UNKNOWN) { Error::ECONNREFUSED => ErrorKind::ConnectionRefused, Error::ECONNRESET => ErrorKind::ConnectionReset, Error::EPERM | Error::EACCES => ErrorKind::PermissionDenied, Error::EPIPE => ErrorKind::BrokenPipe, Error::ENOTCONN => ErrorKind::NotConnected, Error::ECONNABORTED => ErrorKind::ConnectionAborted, Error::EADDRNOTAVAIL => ErrorKind::AddrNotAvailable, Error::EADDRINUSE => ErrorKind::AddrInUse, Error::ENOENT => ErrorKind::NotFound, Error::EINTR => ErrorKind::Interrupted, Error::EINVAL => ErrorKind::InvalidInput, Error::ETIMEDOUT => ErrorKind::TimedOut, Error::EEXIST => ErrorKind::AlreadyExists, x if x == Error::EAGAIN || x == Error::EWOULDBLOCK => ErrorKind::WouldBlock, _ => ErrorKind::Other, }; Self::new(kind, err) } } pub type Result = result::Result; #[macro_export] macro_rules! return_err { ($e:expr) => { match $crate::Error::from($e) { $crate::Error::NO_ERROR => (), err => return Err(From::from(err)), } }; } #[cfg(test)] mod tests { use super::Error; use ffi; #[test] fn test_errno() { let e = Error::from_errno(0); assert_eq!(e.to_errno(), 0); assert_eq!(e.code(), 0); assert_eq!(e, Error::NO_ERROR); } #[test] fn test_syserror() { unsafe { ffi::gpg_err_set_errno(0); } let e = Error::last_os_error(); assert_eq!(e.to_errno(), 0); assert_eq!(e, Error::MISSING_ERRNO); } } gpg-error-0.6.0/tools/mkerrcodes.py000075500000000000000000000030761046102023000154140ustar 00000000000000#!/usr/bin/env python3 # Script to generate constant wrappers for error codes # from upstream sources. from pathlib import Path root = Path(__file__).resolve().parent.parent def read_codes(path, list): with open(root / path, encoding='utf-8') as f: for l in f: parts = l.split() if len(parts) < 2: continue try: int(parts[0]) except ValueError: continue list.append((parts[1], parts[0])) sources = [] codes = [] errnos = [] for (f, l) in [('err-sources.h.in', sources), ('err-codes.h.in', codes), ('errnos.in', errnos)]: read_codes(Path('vendor') / f, l) with open(root / 'libgpg-error-sys/src/consts.rs', 'w', encoding='utf-8') as out: for (name, val) in sources: out.write(f"pub const {name}: gpg_err_source_t = {val};\n") for (name, val) in codes: out.write(f"pub const {name}: gpg_err_code_t = {val};\n") for (name, val) in errnos: out.write( f"pub const GPG_ERR_{name}: gpg_err_code_t = GPG_ERR_SYSTEM_ERROR | {val};\n") with open(root / 'src/consts.rs', 'w', encoding='utf-8') as out: out.write('impl Error{\n') for (name, _) in sources: out.write( f"pub const {name.removeprefix('GPG_ERR_')}: ErrorSource = ffi::{name};\n") for (name, _) in codes: out.write( f"pub const {name.removeprefix('GPG_ERR_')}: Self = Self(ffi::{name});\n") for (name, _) in errnos: out.write(f"pub const {name}: Self = Self(ffi::GPG_ERR_{name});\n") out.write('}\n') gpg-error-0.6.0/vendor/COPYING000064400000000000000000000636421046102023000140760ustar 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, 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 this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), 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 distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser 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 Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "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 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY 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 LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey 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 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. This 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 this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! gpg-error-0.6.0/vendor/err-codes.h.in000064400000000000000000000526701046102023000155030ustar 00000000000000# err-codes.h.in - List of error codes and their description input file. /* err-codes.h - List of error codes and their description. Copyright (C) 2003, 2004 g10 Code GmbH This file is part of libgpg-error. libgpg-error is free software; you can redistribute it 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. libgpg-error is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with libgpg-error; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # Everything up to the first line that starts with a number in the # first column is copied into the output verbatim. Then, empty lines # are ignored. Other lines must have an error code number, followed # by one or more characters, followed by the error code symbol, # followed by one or more characters, followed by the error # message. Trailing whitespace is removed. The error codes should be # sorted. The last line should not have a number, but only a , # followed by a dummy field, followed by a , followed by a # description for error codes that are not in the list. 0 GPG_ERR_NO_ERROR Success 1 GPG_ERR_GENERAL General error 2 GPG_ERR_UNKNOWN_PACKET Unknown packet 3 GPG_ERR_UNKNOWN_VERSION Unknown version in packet 4 GPG_ERR_PUBKEY_ALGO Invalid public key algorithm 5 GPG_ERR_DIGEST_ALGO Invalid digest algorithm 6 GPG_ERR_BAD_PUBKEY Bad public key 7 GPG_ERR_BAD_SECKEY Bad secret key 8 GPG_ERR_BAD_SIGNATURE Bad signature 9 GPG_ERR_NO_PUBKEY No public key 10 GPG_ERR_CHECKSUM Checksum error 11 GPG_ERR_BAD_PASSPHRASE Bad passphrase 12 GPG_ERR_CIPHER_ALGO Invalid cipher algorithm 13 GPG_ERR_KEYRING_OPEN Cannot open keyring 14 GPG_ERR_INV_PACKET Invalid packet 15 GPG_ERR_INV_ARMOR Invalid armor 16 GPG_ERR_NO_USER_ID No user ID 17 GPG_ERR_NO_SECKEY No secret key 18 GPG_ERR_WRONG_SECKEY Wrong secret key used 19 GPG_ERR_BAD_KEY Bad session key 20 GPG_ERR_COMPR_ALGO Unknown compression algorithm 21 GPG_ERR_NO_PRIME Number is not prime 22 GPG_ERR_NO_ENCODING_METHOD Invalid encoding method 23 GPG_ERR_NO_ENCRYPTION_SCHEME Invalid encryption scheme 24 GPG_ERR_NO_SIGNATURE_SCHEME Invalid signature scheme 25 GPG_ERR_INV_ATTR Invalid attribute 26 GPG_ERR_NO_VALUE No value 27 GPG_ERR_NOT_FOUND Not found 28 GPG_ERR_VALUE_NOT_FOUND Value not found 29 GPG_ERR_SYNTAX Syntax error 30 GPG_ERR_BAD_MPI Bad MPI value 31 GPG_ERR_INV_PASSPHRASE Invalid passphrase 32 GPG_ERR_SIG_CLASS Invalid signature class 33 GPG_ERR_RESOURCE_LIMIT Resources exhausted 34 GPG_ERR_INV_KEYRING Invalid keyring 35 GPG_ERR_TRUSTDB Trust DB error 36 GPG_ERR_BAD_CERT Bad certificate 37 GPG_ERR_INV_USER_ID Invalid user ID 38 GPG_ERR_UNEXPECTED Unexpected error 39 GPG_ERR_TIME_CONFLICT Time conflict 40 GPG_ERR_KEYSERVER Keyserver error 41 GPG_ERR_WRONG_PUBKEY_ALGO Wrong public key algorithm 42 GPG_ERR_TRIBUTE_TO_D_A Tribute to D. A. 43 GPG_ERR_WEAK_KEY Weak encryption key 44 GPG_ERR_INV_KEYLEN Invalid key length 45 GPG_ERR_INV_ARG Invalid argument 46 GPG_ERR_BAD_URI Syntax error in URI 47 GPG_ERR_INV_URI Invalid URI 48 GPG_ERR_NETWORK Network error 49 GPG_ERR_UNKNOWN_HOST Unknown host 50 GPG_ERR_SELFTEST_FAILED Selftest failed 51 GPG_ERR_NOT_ENCRYPTED Data not encrypted 52 GPG_ERR_NOT_PROCESSED Data not processed 53 GPG_ERR_UNUSABLE_PUBKEY Unusable public key 54 GPG_ERR_UNUSABLE_SECKEY Unusable secret key 55 GPG_ERR_INV_VALUE Invalid value 56 GPG_ERR_BAD_CERT_CHAIN Bad certificate chain 57 GPG_ERR_MISSING_CERT Missing certificate 58 GPG_ERR_NO_DATA No data 59 GPG_ERR_BUG Bug 60 GPG_ERR_NOT_SUPPORTED Not supported 61 GPG_ERR_INV_OP Invalid operation code 62 GPG_ERR_TIMEOUT Timeout 63 GPG_ERR_INTERNAL Internal error 64 GPG_ERR_EOF_GCRYPT EOF (gcrypt) 65 GPG_ERR_INV_OBJ Invalid object 66 GPG_ERR_TOO_SHORT Provided object is too short 67 GPG_ERR_TOO_LARGE Provided object is too large 68 GPG_ERR_NO_OBJ Missing item in object 69 GPG_ERR_NOT_IMPLEMENTED Not implemented 70 GPG_ERR_CONFLICT Conflicting use 71 GPG_ERR_INV_CIPHER_MODE Invalid cipher mode 72 GPG_ERR_INV_FLAG Invalid flag 73 GPG_ERR_INV_HANDLE Invalid handle 74 GPG_ERR_TRUNCATED Result truncated 75 GPG_ERR_INCOMPLETE_LINE Incomplete line 76 GPG_ERR_INV_RESPONSE Invalid response 77 GPG_ERR_NO_AGENT No agent running 78 GPG_ERR_AGENT Agent error 79 GPG_ERR_INV_DATA Invalid data 80 GPG_ERR_ASSUAN_SERVER_FAULT Unspecific Assuan server fault 81 GPG_ERR_ASSUAN General Assuan error 82 GPG_ERR_INV_SESSION_KEY Invalid session key 83 GPG_ERR_INV_SEXP Invalid S-expression 84 GPG_ERR_UNSUPPORTED_ALGORITHM Unsupported algorithm 85 GPG_ERR_NO_PIN_ENTRY No pinentry 86 GPG_ERR_PIN_ENTRY pinentry error 87 GPG_ERR_BAD_PIN Bad PIN 88 GPG_ERR_INV_NAME Invalid name 89 GPG_ERR_BAD_DATA Bad data 90 GPG_ERR_INV_PARAMETER Invalid parameter 91 GPG_ERR_WRONG_CARD Wrong card 92 GPG_ERR_NO_DIRMNGR No dirmngr 93 GPG_ERR_DIRMNGR dirmngr error 94 GPG_ERR_CERT_REVOKED Certificate revoked 95 GPG_ERR_NO_CRL_KNOWN No CRL known 96 GPG_ERR_CRL_TOO_OLD CRL too old 97 GPG_ERR_LINE_TOO_LONG Line too long 98 GPG_ERR_NOT_TRUSTED Not trusted 99 GPG_ERR_CANCELED Operation cancelled 100 GPG_ERR_BAD_CA_CERT Bad CA certificate 101 GPG_ERR_CERT_EXPIRED Certificate expired 102 GPG_ERR_CERT_TOO_YOUNG Certificate too young 103 GPG_ERR_UNSUPPORTED_CERT Unsupported certificate 104 GPG_ERR_UNKNOWN_SEXP Unknown S-expression 105 GPG_ERR_UNSUPPORTED_PROTECTION Unsupported protection 106 GPG_ERR_CORRUPTED_PROTECTION Corrupted protection 107 GPG_ERR_AMBIGUOUS_NAME Ambiguous name 108 GPG_ERR_CARD Card error 109 GPG_ERR_CARD_RESET Card reset required 110 GPG_ERR_CARD_REMOVED Card removed 111 GPG_ERR_INV_CARD Invalid card 112 GPG_ERR_CARD_NOT_PRESENT Card not present 113 GPG_ERR_NO_PKCS15_APP No PKCS15 application 114 GPG_ERR_NOT_CONFIRMED Not confirmed 115 GPG_ERR_CONFIGURATION Configuration error 116 GPG_ERR_NO_POLICY_MATCH No policy match 117 GPG_ERR_INV_INDEX Invalid index 118 GPG_ERR_INV_ID Invalid ID 119 GPG_ERR_NO_SCDAEMON No SmartCard daemon 120 GPG_ERR_SCDAEMON SmartCard daemon error 121 GPG_ERR_UNSUPPORTED_PROTOCOL Unsupported protocol 122 GPG_ERR_BAD_PIN_METHOD Bad PIN method 123 GPG_ERR_CARD_NOT_INITIALIZED Card not initialized 124 GPG_ERR_UNSUPPORTED_OPERATION Unsupported operation 125 GPG_ERR_WRONG_KEY_USAGE Wrong key usage 126 GPG_ERR_NOTHING_FOUND Nothing found 127 GPG_ERR_WRONG_BLOB_TYPE Wrong blob type 128 GPG_ERR_MISSING_VALUE Missing value 129 GPG_ERR_HARDWARE Hardware problem 130 GPG_ERR_PIN_BLOCKED PIN blocked 131 GPG_ERR_USE_CONDITIONS Conditions of use not satisfied 132 GPG_ERR_PIN_NOT_SYNCED PINs are not synced 133 GPG_ERR_INV_CRL Invalid CRL 134 GPG_ERR_BAD_BER BER error 135 GPG_ERR_INV_BER Invalid BER 136 GPG_ERR_ELEMENT_NOT_FOUND Element not found 137 GPG_ERR_IDENTIFIER_NOT_FOUND Identifier not found 138 GPG_ERR_INV_TAG Invalid tag 139 GPG_ERR_INV_LENGTH Invalid length 140 GPG_ERR_INV_KEYINFO Invalid key info 141 GPG_ERR_UNEXPECTED_TAG Unexpected tag 142 GPG_ERR_NOT_DER_ENCODED Not DER encoded 143 GPG_ERR_NO_CMS_OBJ No CMS object 144 GPG_ERR_INV_CMS_OBJ Invalid CMS object 145 GPG_ERR_UNKNOWN_CMS_OBJ Unknown CMS object 146 GPG_ERR_UNSUPPORTED_CMS_OBJ Unsupported CMS object 147 GPG_ERR_UNSUPPORTED_ENCODING Unsupported encoding 148 GPG_ERR_UNSUPPORTED_CMS_VERSION Unsupported CMS version 149 GPG_ERR_UNKNOWN_ALGORITHM Unknown algorithm 150 GPG_ERR_INV_ENGINE Invalid crypto engine 151 GPG_ERR_PUBKEY_NOT_TRUSTED Public key not trusted 152 GPG_ERR_DECRYPT_FAILED Decryption failed 153 GPG_ERR_KEY_EXPIRED Key expired 154 GPG_ERR_SIG_EXPIRED Signature expired 155 GPG_ERR_ENCODING_PROBLEM Encoding problem 156 GPG_ERR_INV_STATE Invalid state 157 GPG_ERR_DUP_VALUE Duplicated value 158 GPG_ERR_MISSING_ACTION Missing action 159 GPG_ERR_MODULE_NOT_FOUND ASN.1 module not found 160 GPG_ERR_INV_OID_STRING Invalid OID string 161 GPG_ERR_INV_TIME Invalid time 162 GPG_ERR_INV_CRL_OBJ Invalid CRL object 163 GPG_ERR_UNSUPPORTED_CRL_VERSION Unsupported CRL version 164 GPG_ERR_INV_CERT_OBJ Invalid certificate object 165 GPG_ERR_UNKNOWN_NAME Unknown name 166 GPG_ERR_LOCALE_PROBLEM A locale function failed 167 GPG_ERR_NOT_LOCKED Not locked 168 GPG_ERR_PROTOCOL_VIOLATION Protocol violation 169 GPG_ERR_INV_MAC Invalid MAC 170 GPG_ERR_INV_REQUEST Invalid request 171 GPG_ERR_UNKNOWN_EXTN Unknown extension 172 GPG_ERR_UNKNOWN_CRIT_EXTN Unknown critical extension 173 GPG_ERR_LOCKED Locked 174 GPG_ERR_UNKNOWN_OPTION Unknown option 175 GPG_ERR_UNKNOWN_COMMAND Unknown command 176 GPG_ERR_NOT_OPERATIONAL Not operational 177 GPG_ERR_NO_PASSPHRASE No passphrase given 178 GPG_ERR_NO_PIN No PIN given 179 GPG_ERR_NOT_ENABLED Not enabled 180 GPG_ERR_NO_ENGINE No crypto engine 181 GPG_ERR_MISSING_KEY Missing key 182 GPG_ERR_TOO_MANY Too many objects 183 GPG_ERR_LIMIT_REACHED Limit reached 184 GPG_ERR_NOT_INITIALIZED Not initialized 185 GPG_ERR_MISSING_ISSUER_CERT Missing issuer certificate 186 GPG_ERR_NO_KEYSERVER No keyserver available 187 GPG_ERR_INV_CURVE Invalid elliptic curve 188 GPG_ERR_UNKNOWN_CURVE Unknown elliptic curve 189 GPG_ERR_DUP_KEY Duplicated key 190 GPG_ERR_AMBIGUOUS Ambiguous result 191 GPG_ERR_NO_CRYPT_CTX No crypto context 192 GPG_ERR_WRONG_CRYPT_CTX Wrong crypto context 193 GPG_ERR_BAD_CRYPT_CTX Bad crypto context 194 GPG_ERR_CRYPT_CTX_CONFLICT Conflict in the crypto context 195 GPG_ERR_BROKEN_PUBKEY Broken public key 196 GPG_ERR_BROKEN_SECKEY Broken secret key 197 GPG_ERR_MAC_ALGO Invalid MAC algorithm 198 GPG_ERR_FULLY_CANCELED Operation fully cancelled 199 GPG_ERR_UNFINISHED Operation not yet finished 200 GPG_ERR_BUFFER_TOO_SHORT Buffer too short # Error codes pertaining to S-expressions. 201 GPG_ERR_SEXP_INV_LEN_SPEC Invalid length specifier in S-expression 202 GPG_ERR_SEXP_STRING_TOO_LONG String too long in S-expression 203 GPG_ERR_SEXP_UNMATCHED_PAREN Unmatched parentheses in S-expression 204 GPG_ERR_SEXP_NOT_CANONICAL S-expression not canonical 205 GPG_ERR_SEXP_BAD_CHARACTER Bad character in S-expression 206 GPG_ERR_SEXP_BAD_QUOTATION Bad quotation in S-expression 207 GPG_ERR_SEXP_ZERO_PREFIX Zero prefix in S-expression 208 GPG_ERR_SEXP_NESTED_DH Nested display hints in S-expression 209 GPG_ERR_SEXP_UNMATCHED_DH Unmatched display hints 210 GPG_ERR_SEXP_UNEXPECTED_PUNC Unexpected reserved punctuation in S-expression 211 GPG_ERR_SEXP_BAD_HEX_CHAR Bad hexadecimal character in S-expression 212 GPG_ERR_SEXP_ODD_HEX_NUMBERS Odd hexadecimal numbers in S-expression 213 GPG_ERR_SEXP_BAD_OCT_CHAR Bad octal character in S-expression # 214 to 216 are free to be used. 217 GPG_ERR_SUBKEYS_EXP_OR_REV All subkeys are expired or revoked 218 GPG_ERR_DB_CORRUPTED Database is corrupted 219 GPG_ERR_SERVER_FAILED Server indicated a failure 220 GPG_ERR_NO_NAME No name 221 GPG_ERR_NO_KEY No key 222 GPG_ERR_LEGACY_KEY Legacy key 223 GPG_ERR_REQUEST_TOO_SHORT Request too short 224 GPG_ERR_REQUEST_TOO_LONG Request too long 225 GPG_ERR_OBJ_TERM_STATE Object is in termination state 226 GPG_ERR_NO_CERT_CHAIN No certificate chain 227 GPG_ERR_CERT_TOO_LARGE Certificate is too large 228 GPG_ERR_INV_RECORD Invalid record 229 GPG_ERR_BAD_MAC The MAC does not verify 230 GPG_ERR_UNEXPECTED_MSG Unexpected message 231 GPG_ERR_COMPR_FAILED Compression or decompression failed 232 GPG_ERR_WOULD_WRAP A counter would wrap 233 GPG_ERR_FATAL_ALERT Fatal alert message received 234 GPG_ERR_NO_CIPHER No cipher algorithm 235 GPG_ERR_MISSING_CLIENT_CERT Missing client certificate 236 GPG_ERR_CLOSE_NOTIFY Close notification received 237 GPG_ERR_TICKET_EXPIRED Ticket expired 238 GPG_ERR_BAD_TICKET Bad ticket 239 GPG_ERR_UNKNOWN_IDENTITY Unknown identity 240 GPG_ERR_BAD_HS_CERT Bad certificate message in handshake 241 GPG_ERR_BAD_HS_CERT_REQ Bad certificate request message in handshake 242 GPG_ERR_BAD_HS_CERT_VER Bad certificate verify message in handshake 243 GPG_ERR_BAD_HS_CHANGE_CIPHER Bad change cipher message in handshake 244 GPG_ERR_BAD_HS_CLIENT_HELLO Bad client hello message in handshake 245 GPG_ERR_BAD_HS_SERVER_HELLO Bad server hello message in handshake 246 GPG_ERR_BAD_HS_SERVER_HELLO_DONE Bad server hello done message in handshake 247 GPG_ERR_BAD_HS_FINISHED Bad finished message in handshake 248 GPG_ERR_BAD_HS_SERVER_KEX Bad server key exchange message in handshake 249 GPG_ERR_BAD_HS_CLIENT_KEX Bad client key exchange message in handshake 250 GPG_ERR_BOGUS_STRING Bogus string 251 GPG_ERR_FORBIDDEN Forbidden 252 GPG_ERR_KEY_DISABLED Key disabled 253 GPG_ERR_KEY_ON_CARD Not possible with a card based key 254 GPG_ERR_INV_LOCK_OBJ Invalid lock object 255 GPG_ERR_TRUE True 256 GPG_ERR_FALSE False # Error codes pertaining to the Assuan IPC interface 257 GPG_ERR_ASS_GENERAL General IPC error 258 GPG_ERR_ASS_ACCEPT_FAILED IPC accept call failed 259 GPG_ERR_ASS_CONNECT_FAILED IPC connect call failed 260 GPG_ERR_ASS_INV_RESPONSE Invalid IPC response 261 GPG_ERR_ASS_INV_VALUE Invalid value passed to IPC 262 GPG_ERR_ASS_INCOMPLETE_LINE Incomplete line passed to IPC 263 GPG_ERR_ASS_LINE_TOO_LONG Line passed to IPC too long 264 GPG_ERR_ASS_NESTED_COMMANDS Nested IPC commands 265 GPG_ERR_ASS_NO_DATA_CB No data callback in IPC 266 GPG_ERR_ASS_NO_INQUIRE_CB No inquire callback in IPC 267 GPG_ERR_ASS_NOT_A_SERVER Not an IPC server 268 GPG_ERR_ASS_NOT_A_CLIENT Not an IPC client 269 GPG_ERR_ASS_SERVER_START Problem starting IPC server 270 GPG_ERR_ASS_READ_ERROR IPC read error 271 GPG_ERR_ASS_WRITE_ERROR IPC write error # reserved 273 GPG_ERR_ASS_TOO_MUCH_DATA Too much data for IPC layer 274 GPG_ERR_ASS_UNEXPECTED_CMD Unexpected IPC command 275 GPG_ERR_ASS_UNKNOWN_CMD Unknown IPC command 276 GPG_ERR_ASS_SYNTAX IPC syntax error 277 GPG_ERR_ASS_CANCELED IPC call has been cancelled 278 GPG_ERR_ASS_NO_INPUT No input source for IPC 279 GPG_ERR_ASS_NO_OUTPUT No output source for IPC 280 GPG_ERR_ASS_PARAMETER IPC parameter error 281 GPG_ERR_ASS_UNKNOWN_INQUIRE Unknown IPC inquire # 282 to 299 are reserved for future assuan codes. 300 GPG_ERR_ENGINE_TOO_OLD Crypto engine too old 301 GPG_ERR_WINDOW_TOO_SMALL Screen or window too small 302 GPG_ERR_WINDOW_TOO_LARGE Screen or window too large 303 GPG_ERR_MISSING_ENVVAR Required environment variable not set 304 GPG_ERR_USER_ID_EXISTS User ID already exists 305 GPG_ERR_NAME_EXISTS Name already exists 306 GPG_ERR_DUP_NAME Duplicated name 307 GPG_ERR_TOO_YOUNG Object is too young 308 GPG_ERR_TOO_OLD Object is too old 309 GPG_ERR_UNKNOWN_FLAG Unknown flag 310 GPG_ERR_INV_ORDER Invalid execution order 311 GPG_ERR_ALREADY_FETCHED Already fetched 312 GPG_ERR_TRY_LATER Try again later 313 GPG_ERR_WRONG_NAME Wrong name 314 GPG_ERR_NO_AUTH Not authenticated 315 GPG_ERR_BAD_AUTH Bad authentication # This range is free for use. 666 GPG_ERR_SYSTEM_BUG System bug detected # # Mapping of some error codes from libdns and other DNS specific error codes # 711 GPG_ERR_DNS_UNKNOWN Unknown DNS error 712 GPG_ERR_DNS_SECTION Invalid DNS section 713 GPG_ERR_DNS_ADDRESS Invalid textual address form 714 GPG_ERR_DNS_NO_QUERY Missing DNS query packet 715 GPG_ERR_DNS_NO_ANSWER Missing DNS answer packet 716 GPG_ERR_DNS_CLOSED Connection closed in DNS 717 GPG_ERR_DNS_VERIFY Verification failed in DNS 718 GPG_ERR_DNS_TIMEOUT DNS Timeout # # Mapping of LDAP error codes # # The numbers reflect the OpenLDAP code with an offset of 768. # Some error names are shortened # 721 GPG_ERR_LDAP_GENERAL General LDAP error 722 GPG_ERR_LDAP_ATTR_GENERAL General LDAP attribute error 723 GPG_ERR_LDAP_NAME_GENERAL General LDAP name error 724 GPG_ERR_LDAP_SECURITY_GENERAL General LDAP security error 725 GPG_ERR_LDAP_SERVICE_GENERAL General LDAP service error 726 GPG_ERR_LDAP_UPDATE_GENERAL General LDAP update error 727 GPG_ERR_LDAP_E_GENERAL Experimental LDAP error code 728 GPG_ERR_LDAP_X_GENERAL Private LDAP error code 729 GPG_ERR_LDAP_OTHER_GENERAL Other general LDAP error # 730 to 749 not used 750 GPG_ERR_LDAP_X_CONNECTING LDAP connecting failed (X) 751 GPG_ERR_LDAP_REFERRAL_LIMIT LDAP referral limit exceeded 752 GPG_ERR_LDAP_CLIENT_LOOP LDAP client loop # 753 is an obsolete error code 754 GPG_ERR_LDAP_NO_RESULTS No LDAP results returned 755 GPG_ERR_LDAP_CONTROL_NOT_FOUND LDAP control not found 756 GPG_ERR_LDAP_NOT_SUPPORTED Not supported by LDAP 757 GPG_ERR_LDAP_CONNECT LDAP connect error 758 GPG_ERR_LDAP_NO_MEMORY Out of memory in LDAP 759 GPG_ERR_LDAP_PARAM Bad parameter to an LDAP routine 760 GPG_ERR_LDAP_USER_CANCELLED User cancelled LDAP operation 761 GPG_ERR_LDAP_FILTER Bad LDAP search filter 762 GPG_ERR_LDAP_AUTH_UNKNOWN Unknown LDAP authentication method 763 GPG_ERR_LDAP_TIMEOUT Timeout in LDAP 764 GPG_ERR_LDAP_DECODING LDAP decoding error 765 GPG_ERR_LDAP_ENCODING LDAP encoding error 766 GPG_ERR_LDAP_LOCAL LDAP local error 767 GPG_ERR_LDAP_SERVER_DOWN Cannot contact LDAP server 768 GPG_ERR_LDAP_SUCCESS LDAP success 769 GPG_ERR_LDAP_OPERATIONS LDAP operations error 770 GPG_ERR_LDAP_PROTOCOL LDAP protocol error 771 GPG_ERR_LDAP_TIMELIMIT Time limit exceeded in LDAP 772 GPG_ERR_LDAP_SIZELIMIT Size limit exceeded in LDAP 773 GPG_ERR_LDAP_COMPARE_FALSE LDAP compare false 774 GPG_ERR_LDAP_COMPARE_TRUE LDAP compare true 775 GPG_ERR_LDAP_UNSUPPORTED_AUTH LDAP authentication method not supported 776 GPG_ERR_LDAP_STRONG_AUTH_RQRD Strong(er) LDAP authentication required 777 GPG_ERR_LDAP_PARTIAL_RESULTS Partial LDAP results+referral received 778 GPG_ERR_LDAP_REFERRAL LDAP referral 779 GPG_ERR_LDAP_ADMINLIMIT Administrative LDAP limit exceeded 780 GPG_ERR_LDAP_UNAVAIL_CRIT_EXTN Critical LDAP extension is unavailable 781 GPG_ERR_LDAP_CONFIDENT_RQRD Confidentiality required by LDAP 782 GPG_ERR_LDAP_SASL_BIND_INPROG LDAP SASL bind in progress # 783 not used 784 GPG_ERR_LDAP_NO_SUCH_ATTRIBUTE No such LDAP attribute 785 GPG_ERR_LDAP_UNDEFINED_TYPE Undefined LDAP attribute type 786 GPG_ERR_LDAP_BAD_MATCHING Inappropriate matching in LDAP 787 GPG_ERR_LDAP_CONST_VIOLATION Constraint violation in LDAP 788 GPG_ERR_LDAP_TYPE_VALUE_EXISTS LDAP type or value exists 789 GPG_ERR_LDAP_INV_SYNTAX Invalid syntax in LDAP # 790 to 799 not used 800 GPG_ERR_LDAP_NO_SUCH_OBJ No such LDAP object 801 GPG_ERR_LDAP_ALIAS_PROBLEM LDAP alias problem 802 GPG_ERR_LDAP_INV_DN_SYNTAX Invalid DN syntax in LDAP 803 GPG_ERR_LDAP_IS_LEAF LDAP entry is a leaf 804 GPG_ERR_LDAP_ALIAS_DEREF LDAP alias dereferencing problem # 805 to 814 not used 815 GPG_ERR_LDAP_X_PROXY_AUTH_FAIL LDAP proxy authorization failure (X) 816 GPG_ERR_LDAP_BAD_AUTH Inappropriate LDAP authentication 817 GPG_ERR_LDAP_INV_CREDENTIALS Invalid LDAP credentials 818 GPG_ERR_LDAP_INSUFFICIENT_ACC Insufficient access for LDAP 819 GPG_ERR_LDAP_BUSY LDAP server is busy 820 GPG_ERR_LDAP_UNAVAILABLE LDAP server is unavailable 821 GPG_ERR_LDAP_UNWILL_TO_PERFORM LDAP server is unwilling to perform 822 GPG_ERR_LDAP_LOOP_DETECT Loop detected by LDAP # 823 to 831 not used 832 GPG_ERR_LDAP_NAMING_VIOLATION LDAP naming violation 833 GPG_ERR_LDAP_OBJ_CLS_VIOLATION LDAP object class violation 834 GPG_ERR_LDAP_NOT_ALLOW_NONLEAF LDAP operation not allowed on non-leaf 835 GPG_ERR_LDAP_NOT_ALLOW_ON_RDN LDAP operation not allowed on RDN 836 GPG_ERR_LDAP_ALREADY_EXISTS Already exists (LDAP) 837 GPG_ERR_LDAP_NO_OBJ_CLASS_MODS Cannot modify LDAP object class 838 GPG_ERR_LDAP_RESULTS_TOO_LARGE LDAP results too large 839 GPG_ERR_LDAP_AFFECTS_MULT_DSAS LDAP operation affects multiple DSAs # 840 to 843 not used 844 GPG_ERR_LDAP_VLV Virtual LDAP list view error # 845 to 847 not used 848 GPG_ERR_LDAP_OTHER Other LDAP error # 849 to 880 not used 881 GPG_ERR_LDAP_CUP_RESOURCE_LIMIT Resources exhausted in LCUP 882 GPG_ERR_LDAP_CUP_SEC_VIOLATION Security violation in LCUP 883 GPG_ERR_LDAP_CUP_INV_DATA Invalid data in LCUP 884 GPG_ERR_LDAP_CUP_UNSUP_SCHEME Unsupported scheme in LCUP 885 GPG_ERR_LDAP_CUP_RELOAD Reload required in LCUP 886 GPG_ERR_LDAP_CANCELLED LDAP cancelled 887 GPG_ERR_LDAP_NO_SUCH_OPERATION No LDAP operation to cancel 888 GPG_ERR_LDAP_TOO_LATE Too late to cancel LDAP 889 GPG_ERR_LDAP_CANNOT_CANCEL Cannot cancel LDAP 890 GPG_ERR_LDAP_ASSERTION_FAILED LDAP assertion failed 891 GPG_ERR_LDAP_PROX_AUTH_DENIED Proxied authorization denied by LDAP # 892 to 950 are reserved for future LDAP codes. # 951 to 1023 are free to be used. # For free use by non-GnuPG components: 1024 GPG_ERR_USER_1 User defined error code 1 1025 GPG_ERR_USER_2 User defined error code 2 1026 GPG_ERR_USER_3 User defined error code 3 1027 GPG_ERR_USER_4 User defined error code 4 1028 GPG_ERR_USER_5 User defined error code 5 1029 GPG_ERR_USER_6 User defined error code 6 1030 GPG_ERR_USER_7 User defined error code 7 1031 GPG_ERR_USER_8 User defined error code 8 1032 GPG_ERR_USER_9 User defined error code 9 1033 GPG_ERR_USER_10 User defined error code 10 1034 GPG_ERR_USER_11 User defined error code 11 1035 GPG_ERR_USER_12 User defined error code 12 1036 GPG_ERR_USER_13 User defined error code 13 1037 GPG_ERR_USER_14 User defined error code 14 1038 GPG_ERR_USER_15 User defined error code 15 1039 GPG_ERR_USER_16 User defined error code 16 # 1040 to 16380 are free to be used. 16381 GPG_ERR_MISSING_ERRNO System error w/o errno 16382 GPG_ERR_UNKNOWN_ERRNO Unknown system error 16383 GPG_ERR_EOF End of file # 16384 - 32767 are reserved for future extensions. # GPG_SYSTEM_ERROR | (141 to 32767) are to be used for system errors. GPG_ERR_CODE_DIM Unknown error code gpg-error-0.6.0/vendor/err-sources.h.in000064400000000000000000000045371046102023000160700ustar 00000000000000# err-sources.h.in - List of error sources and their description input file. /* err-sources.h - List of error sources and their description. Copyright (C) 2003, 2004 g10 Code GmbH This file is part of libgpg-error. libgpg-error is free software; you can redistribute it 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. libgpg-error is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with libgpg-error; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # Everything up to the first line that starts with a number in the # first column is copied into the output verbatim. Then, empty lines # are ignored. Other lines must have an error source number, followed # by one or more characters, followed by the error source # symbol, followed by one or more characters, followed by the # error source name. Trailing whitespace is removed. The error # sources should be sorted. The last line should not have a number, # but only a , followed by a description for error sources that # are not in the list. 0 GPG_ERR_SOURCE_UNKNOWN Unspecified source 1 GPG_ERR_SOURCE_GCRYPT gcrypt 2 GPG_ERR_SOURCE_GPG GnuPG 3 GPG_ERR_SOURCE_GPGSM GpgSM 4 GPG_ERR_SOURCE_GPGAGENT GPG Agent 5 GPG_ERR_SOURCE_PINENTRY Pinentry 6 GPG_ERR_SOURCE_SCD SCD 7 GPG_ERR_SOURCE_GPGME GPGME 8 GPG_ERR_SOURCE_KEYBOX Keybox 9 GPG_ERR_SOURCE_KSBA KSBA 10 GPG_ERR_SOURCE_DIRMNGR Dirmngr 11 GPG_ERR_SOURCE_GSTI GSTI 12 GPG_ERR_SOURCE_GPA GPA 13 GPG_ERR_SOURCE_KLEO Kleopatra 14 GPG_ERR_SOURCE_G13 G13 15 GPG_ERR_SOURCE_ASSUAN Assuan 17 GPG_ERR_SOURCE_TLS TLS # 15 to 30 are free to be used. 31 GPG_ERR_SOURCE_ANY Any source 32 GPG_ERR_SOURCE_USER_1 User defined source 1 33 GPG_ERR_SOURCE_USER_2 User defined source 2 34 GPG_ERR_SOURCE_USER_3 User defined source 3 35 GPG_ERR_SOURCE_USER_4 User defined source 4 # 36 to 255 are free to be used. GPG_ERR_SOURCE_DIM Unknown source gpg-error-0.6.0/vendor/errnos.in000064400000000000000000000057061046102023000147000ustar 00000000000000# errnos.in - List of system error values input file. /* errnos.in - List of system error values. Copyright (C) 2003, 2004 g10 Code GmbH This file is part of libgpg-error. libgpg-error is free software; you can redistribute it 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. libgpg-error is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with libgpg-error; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # Everything up to the first line that starts with a number in the # first column is copied into the output verbatim. Then, empty lines # are ignored. Other lines must have an error code number, followed # by one or more characters, followed by the error name. # # IMPORTANT: For now, the numbering must be consecutive. Some of the # scripts (notably mkerrnos.h) do not deal correctly with a numbering # that is out of order or has gaps. 0 E2BIG 1 EACCES 2 EADDRINUSE 3 EADDRNOTAVAIL 4 EADV 5 EAFNOSUPPORT 6 EAGAIN 7 EALREADY 8 EAUTH 9 EBACKGROUND 10 EBADE 11 EBADF 12 EBADFD 13 EBADMSG 14 EBADR 15 EBADRPC 16 EBADRQC 17 EBADSLT 18 EBFONT 19 EBUSY 20 ECANCELED 21 ECHILD 22 ECHRNG 23 ECOMM 24 ECONNABORTED 25 ECONNREFUSED 26 ECONNRESET 27 ED 28 EDEADLK 29 EDEADLOCK 30 EDESTADDRREQ 31 EDIED 32 EDOM 33 EDOTDOT 34 EDQUOT 35 EEXIST 36 EFAULT 37 EFBIG 38 EFTYPE 39 EGRATUITOUS 40 EGREGIOUS 41 EHOSTDOWN 42 EHOSTUNREACH 43 EIDRM 44 EIEIO 45 EILSEQ 46 EINPROGRESS 47 EINTR 48 EINVAL 49 EIO 50 EISCONN 51 EISDIR 52 EISNAM 53 EL2HLT 54 EL2NSYNC 55 EL3HLT 56 EL3RST 57 ELIBACC 58 ELIBBAD 59 ELIBEXEC 60 ELIBMAX 61 ELIBSCN 62 ELNRNG 63 ELOOP 64 EMEDIUMTYPE 65 EMFILE 66 EMLINK 67 EMSGSIZE 68 EMULTIHOP 69 ENAMETOOLONG 70 ENAVAIL 71 ENEEDAUTH 72 ENETDOWN 73 ENETRESET 74 ENETUNREACH 75 ENFILE 76 ENOANO 77 ENOBUFS 78 ENOCSI 79 ENODATA 80 ENODEV 81 ENOENT 82 ENOEXEC 83 ENOLCK 84 ENOLINK 85 ENOMEDIUM 86 ENOMEM 87 ENOMSG 88 ENONET 89 ENOPKG 90 ENOPROTOOPT 91 ENOSPC 92 ENOSR 93 ENOSTR 94 ENOSYS 95 ENOTBLK 96 ENOTCONN 97 ENOTDIR 98 ENOTEMPTY 99 ENOTNAM 100 ENOTSOCK 101 ENOTSUP 102 ENOTTY 103 ENOTUNIQ 104 ENXIO 105 EOPNOTSUPP 106 EOVERFLOW 107 EPERM 108 EPFNOSUPPORT 109 EPIPE 110 EPROCLIM 111 EPROCUNAVAIL 112 EPROGMISMATCH 113 EPROGUNAVAIL 114 EPROTO 115 EPROTONOSUPPORT 116 EPROTOTYPE 117 ERANGE 118 EREMCHG 119 EREMOTE 120 EREMOTEIO 121 ERESTART 122 EROFS 123 ERPCMISMATCH 124 ESHUTDOWN 125 ESOCKTNOSUPPORT 126 ESPIPE 127 ESRCH 128 ESRMNT 129 ESTALE 130 ESTRPIPE 131 ETIME 132 ETIMEDOUT 133 ETOOMANYREFS 134 ETXTBSY 135 EUCLEAN 136 EUNATCH 137 EUSERS 138 EWOULDBLOCK 139 EXDEV 140 EXFULL