pax_global_header00006660000000000000000000000064141444607400014516gustar00rootroot0000000000000052 comment=59ce1b4e6990046a091d05af107a1d8debc376ff OTPClient-2.4.6/000077500000000000000000000000001414446074000133305ustar00rootroot00000000000000OTPClient-2.4.6/.ci/000077500000000000000000000000001414446074000140015ustar00rootroot00000000000000OTPClient-2.4.6/.ci/install_deps.sh000066400000000000000000000005711414446074000170210ustar00rootroot00000000000000#!/bin/bash set -e __compile_and_install() { cmake .. -DCMAKE_INSTALL_PREFIX=/usr make -j2 make install } git clone https://github.com/paolostivanin/libbaseencode.git cd libbaseencode && mkdir build && cd "$_" __compile_and_install cd ../.. git clone https://github.com/paolostivanin/libcotp.git cd libcotp && mkdir build && cd "$_" __compile_and_install cd ../.. OTPClient-2.4.6/.ci/install_otpclient.sh000066400000000000000000000002401414446074000200600ustar00rootroot00000000000000#!/bin/bash set -e __compile_and_install() { cmake .. -DCMAKE_INSTALL_PREFIX=/usr make -j2 make install } mkdir build && cd "$_" __compile_and_install OTPClient-2.4.6/.circleci/000077500000000000000000000000001414446074000151635ustar00rootroot00000000000000OTPClient-2.4.6/.circleci/config.yml000066400000000000000000000040641414446074000171570ustar00rootroot00000000000000version: 2.0 jobs: ubuntu1804: docker: - image: ubuntu:18.04 steps: - checkout - run: apt update && DEBIAN_FRONTEND=noninteractive apt -y install git gcc clang cmake libgcrypt20-dev libgtk-3-dev libzip-dev libjansson-dev libpng-dev libzbar-dev - run: chmod +x .ci/install_deps.sh && .ci/install_deps.sh - run: chmod +x .ci/install_otpclient.sh && .ci/install_otpclient.sh ubuntuLatestRolling: docker: - image: ubuntu:rolling steps: - checkout - run: apt update && DEBIAN_FRONTEND=noninteractive apt -y install git gcc clang cmake libgcrypt20-dev libgtk-3-dev libzip-dev libjansson-dev libpng-dev libzbar-dev - run: chmod +x .ci/install_deps.sh && .ci/install_deps.sh - run: chmod +x .ci/install_otpclient.sh && .ci/install_otpclient.sh debianLatestStable: docker: - image: debian:latest steps: - checkout - run: apt update && apt -y install git gcc clang cmake libgcrypt20-dev libgtk-3-dev libzip-dev libjansson-dev libpng-dev libzbar-dev - run: chmod +x .ci/install_deps.sh && .ci/install_deps.sh - run: chmod +x .ci/install_otpclient.sh && .ci/install_otpclient.sh fedoraLatestStable: docker: - image: fedora:latest steps: - checkout - run: dnf -y update && dnf -y install git gcc clang cmake make libgcrypt-devel gtk3-devel libzip-devel jansson-devel libpng-devel zbar-devel - run: chmod +x .ci/install_deps.sh && .ci/install_deps.sh - run: chmod +x .ci/install_otpclient.sh && .ci/install_otpclient.sh archlinux: docker: - image: archlinux:latest steps: - checkout - run: pacman -Syu --noconfirm && pacman -S --noconfirm pkg-config git gtk3 libgcrypt zbar gcc clang cmake make libzip jansson libpng - run: chmod +x .ci/install_deps.sh && .ci/install_deps.sh - run: chmod +x .ci/install_otpclient.sh && .ci/install_otpclient.sh workflows: version: 2 build: jobs: - ubuntu1804 - ubuntuLatestRolling - debianLatestStable #- fedoraLatestStable - archlinux OTPClient-2.4.6/.github/000077500000000000000000000000001414446074000146705ustar00rootroot00000000000000OTPClient-2.4.6/.github/workflows/000077500000000000000000000000001414446074000167255ustar00rootroot00000000000000OTPClient-2.4.6/.github/workflows/codeql-analysis.yml000066400000000000000000000020771414446074000225460ustar00rootroot00000000000000name: "CodeQL" on: push: branches: [ master ] pull_request: # The branches below must be a subset of the branches above branches: [ master ] schedule: - cron: '30 13 * * 1' jobs: analyze: name: Analyze runs-on: ubuntu-latest strategy: fail-fast: false matrix: language: [ 'cpp' ] steps: - name: Checkout repository uses: actions/checkout@v2 - name: Initialize CodeQL uses: github/codeql-action/init@v1 with: languages: ${{ matrix.language }} - name: Install Dependencies run: | sudo apt update && DEBIAN_FRONTEND=noninteractive sudo apt -y install git gcc clang cmake libgcrypt20-dev libgtk-3-dev libzip-dev libjansson-dev libpng-dev libzbar-dev git clone https://github.com/paolostivanin/OTPClient ./OTPClient cd OTPClient && chmod +x .ci/install_deps.sh && sudo .ci/install_deps.sh - name: Build run: | mkdir build && cd $_ cmake .. make - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 OTPClient-2.4.6/.gitignore000066400000000000000000000005401414446074000153170ustar00rootroot00000000000000cmake-build-debug/ build/ tests/ .flatpak-builder/ flatpak/repo/ TODO* .idea/ # Object files *.o *.ko *.obj *.elf # Precompiled Headers *.gch *.pch # Libraries *.lib *.a *.la *.lo # Shared objects (inc. Windows DLLs) *.dll *.so *.so.* *.dylib # Executables *.exe *.out *.app *.i*86 *.x86_64 *.hex # Debug files *.dSYM/ # Backup files *.ui~ *.c~ OTPClient-2.4.6/CMakeLists.txt000066400000000000000000000160711414446074000160750ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.5) project(OTPClient VERSION "2.4.4" LANGUAGES "C") configure_file("src/common/version.h.in" "version.h") include_directories(${PROJECT_BINARY_DIR}) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) option(USE_FLATPAK_APP_FOLDER "Use flatpak app's config folder to store the database" OFF) option(BUILD_GUI "Build the GUI" ON) option(BUILD_CLI "Build the CLI" ON) set(CMAKE_C_STANDARD 11) set(CMAKE_C_FLAGS "-Wall -Wextra -O2 -Wformat=2 -Wmissing-format-attribute -fstack-protector-strong -Wundef -Wmissing-format-attribute") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always -Wstrict-prototypes -Wunreachable-code") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wchar-subscripts -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wcast-align") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=format-security -Werror=implicit-function-declaration -Wno-sign-compare") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2") if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pie -fPIE") endif() if(USE_FLATPAK_APP_FOLDER) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_FLATPAK_APP_FOLDER") endif() if(BUILD_GUI) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBUILD_GUI") endif() if(BUILD_CLI) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBUILD_CLI") endif() if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-add-needed -Wl,--as-needed -Wl,--no-undefined") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro,-z,now") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-add-needed -Wl,--as-needed") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,relro,-z,now") endif() find_package(PkgConfig REQUIRED) find_package(Gcrypt 1.6.0 REQUIRED) pkg_check_modules(COTP REQUIRED cotp>=1.2.1) pkg_check_modules(PNG REQUIRED libpng>=1.2.0) pkg_check_modules(LIBZIP REQUIRED libzip>=1.0.0) pkg_check_modules(JANSSON REQUIRED jansson>=2.6.0) pkg_check_modules(ZBAR REQUIRED zbar>=0.10) pkg_check_modules(GTK3 REQUIRED gtk+-3.0>=3.18.0) pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.48.0) pkg_check_modules(GIO REQUIRED gio-2.0>=2.48.0) if(${ZBAR_VERSION} VERSION_EQUAL 0.10) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DZBAR_OLD_LIB") endif () set(GUI_HEADER_FILES src/common/common.h src/add-common.h src/gui-common.h src/data.h src/db-misc.h src/file-size.h src/get-builder.h src/gquarks.h src/imports.h src/liststore-misc.h src/manual-add-cb.h src/message-dialogs.h src/otpclient.h src/parse-uri.h src/password-cb.h src/qrcode-parser.h src/treeview.h src/common/exports.h src/lock-app.h src/common/get-providers-data.h) set(GUI_SOURCE_FILES src/common/common.c src/add-common.c src/common/andotp.c src/app.c src/authplus.c src/gui-common.c src/db-misc.c src/edit-data.c src/file-size.c src/get-builder.c src/gquarks.c src/imports.c src/liststore-misc.c src/main.c src/manual-add-cb.c src/message-dialogs.c src/parse-data.c src/parse-uri.c src/password-cb.c src/qrcode-parser.c src/screenshot-add-cb.c src/add-from-qr.c src/settings.c src/shortcuts.c src/treeview.c src/webcam-add-cb.c src/exports.c src/lock-app.c src/common/freeotp.c src/common/aegis.c) set(CLI_HEADER_FILES src/cli/help.h src/cli/get-data.h src/common/common.h src/db-misc.h src/gquarks.h src/file-size.h src/common/exports.h src/parse-uri.h src/common/get-providers-data.h) set(CLI_SOURCE_FILES src/cli/main.c src/cli/help.c src/cli/get-data.c src/common/common.c src/db-misc.c src/gquarks.c src/file-size.c src/parse-uri.c src/common/andotp.c src/common/aegis.c src/common/freeotp.c) if(BUILD_GUI AND BUILD_CLI) list(APPEND CLI_SOURCE_FILES src/treeview.c src/liststore-misc.c src/gui-common.c src/message-dialogs.c) list(APPEND CLI_HEADER_FILES src/treeview.h src/liststore-misc.h src/gui-common.h src/message-dialogs.h) endif() if(BUILD_GUI) include_directories(${GTK3_INCLUDE_DIRS} ${GCRYPT_INCLUDE_DIRS} ${COTP_INCLUDE_DIRS} ${LIBZIP_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} ${JANSSON_INCLUDE_DIRS} ${ZBAR_INCLUDE_DIRS}) add_executable(${PROJECT_NAME} ${GUI_SOURCE_FILES} ${GUI_HEADER_FILES}) target_link_libraries(${PROJECT_NAME} ${GTK3_LIBRARIES} ${GCRYPT_LIBRARIES} ${COTP_LIBRARIES} ${LIBZIP_LIBRARIES} ${PNG_LIBRARIES} ${JANSSON_LIBRARIES} ${ZBAR_LIBRARIES}) set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "otpclient") install(TARGETS ${PROJECT_NAME} DESTINATION bin) endif() if(BUILD_CLI) include_directories(${GTK3_INCLUDE_DIRS} ${GCRYPT_INCLUDE_DIRS} ${COTP_INCLUDE_DIRS} ${JANSSON_INCLUDE_DIRS}) if(BUILD_GUI) include_directories( ${LIBZIP_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} ${ZBAR_INCLUDE_DIRS}) endif() add_executable(${PROJECT_NAME}-cli ${CLI_SOURCE_FILES} ${CLI_HEADER_FILES}) target_link_libraries(${PROJECT_NAME}-cli ${GLIB2_LIBRARIES} ${GIO_LIBRARIES} ${GCRYPT_LIBRARIES} ${COTP_LIBRARIES} ${JANSSON_LIBRARIES}) if(BUILD_GUI) target_link_libraries(${PROJECT_NAME}-cli ${GTK3_LIBRARIES} ${LIBZIP_LIBRARIES} ${PNG_LIBRARIES} ${ZBAR_LIBRARIES}) endif() set_target_properties(${PROJECT_NAME}-cli PROPERTIES OUTPUT_NAME "otpclient-cli") install(TARGETS ${PROJECT_NAME}-cli DESTINATION bin) endif() install(FILES data/com.github.paolostivanin.OTPClient.desktop DESTINATION share/applications) install(FILES data/com.github.paolostivanin.OTPClient.appdata.xml DESTINATION share/metainfo) install(FILES src/ui/otpclient.ui DESTINATION share/otpclient) install(FILES src/ui/shortcuts.ui DESTINATION share/otpclient) install(FILES man/otpclient.1.gz DESTINATION share/man/man1) install(FILES man/otpclient-cli.1.gz DESTINATION share/man/man1) install(FILES data/icons/com.github.paolostivanin.OTPClient.svg DESTINATION share/icons/hicolor/scalable/apps) install(FILES data/icons/com.github.paolostivanin.OTPClient-symbolic.svg DESTINATION share/icons/hicolor/scalable/apps) OTPClient-2.4.6/LICENSE000066400000000000000000001045151414446074000143430ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . OTPClient-2.4.6/README.md000066400000000000000000000053421414446074000146130ustar00rootroot00000000000000# OTPClient CircleCI Highly secure and easy to use GTK+ software for two-factor authentication that supports both Time-based One-time Passwords (TOTP) and HMAC-Based One-Time Passwords (HOTP). ## Requirements |Name|Min Version|Suggested Min Version| |----|-----------|-----------------| |GTK+|3.18| 3.22| |Glib|2.48.0|2.50| |jansson|2.6.0|-| |libgcrypt|1.6.0|-| |libzip|1.0.0|-| |libpng|1.2.0|-| |[libcotp](https://github.com/paolostivanin/libcotp)|1.2.1|-| |zbar|0.10|0.20 ([linuxtv](https://linuxtv.org/downloads/zbar/))| |cmake|3.5|-| ## Features - support both TOTP and HOTP - support setting custom digits (between 4 and 10 inclusive) - support setting a custom period (between 10 and 120 seconds inclusive) - support SHA1, SHA256 and SHA512 algorithms - support for Steam codes (please read [THIS PAGE](https://github.com/paolostivanin/OTPClient/wiki/Steam-Support)) - import encrypted [Authenticator Plus](https://www.authenticatorplus.com/) backup - import and export encrypted and/or plain [andOTP](https://github.com/flocke/andOTP) backup - import and export plain [FreeOTPPlus](https://github.com/helloworld1/FreeOTPPlus) backup (key URI format only) - import and export plain [Aegis](https://github.com/beemdevelopment/Aegis) backup (plain json only) - local database is encrypted using AES256-GCM - key is derived using PBKDF2 with SHA512 and 100k iterations - decrypted file is never saved (and hopefully never swapped) to disk. While the app is running, the decrypted content resides in a "secure memory" buffer allocated by Gcrypt ## Testing * Before each release, I run PVS Studio in order to catch even more errors and/or corner cases * With every commit to master, OTPClient is compiled in CircleCI against different distros ## Wiki For things like roadmap, screenshots, how to use OTPClient, etc, please have a look at the [project's wiki](https://github.com/paolostivanin/OTPClient/wiki). You'll find a lot of useful information there. ## Manual installation If OTPClient hasn't been packaged for your distro ([check here](https://github.com/paolostivanin/OTPClient/wiki/Tested-OS-&-Packages#packages)) and your distro doesn't support Flatpak, then you'll have to manually compile and install OTPClient. 1. install all the needed libraries listed under [requirements](#requirements) 2. clone and install OTPClient: ``` git clone https://github.com/paolostivanin/OTPClient.git cd OTPClient mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install ``` ## License This software is released under the GPLv3 license. Please have a look at the [LICENSE](LICENSE) file for more details. OTPClient-2.4.6/SECURITY.md000066400000000000000000000017661414446074000151330ustar00rootroot00000000000000# Security Policy ## Supported Versions The following list describes whether a version is eligible or not for security updates. | Version | Supported | EOL | | ------- | ------------------ |------| | 2.4.x | :heavy_check_mark: | 3.0.0 + 1 year | | 2.3.x | :x: | 28-Feb-2021 | | 2.2.x | :x: | 27-May-2020 | | 2.1.x | :x: | 20-Apr-2020 | | 2.0.x | :x: | 08-Mar-2020 | | 1.5.x | :x: | 31-Mar-2020 | | < 1.5.0 | :x: | 27-Jun-2019 | ## Reporting a Vulnerability In case you should find a vulnerability, please report it privately to me via [e-mail](mailto:paolostivanin@users.noreply.github.com). The following is the workflow: - security issue is found, e-mail is sent to me - within 24 hours I will reply to your e-mail with some info like, for example, whether it actually is a security issue and how serious it is - within 15 days I will develop and ship a fix - once the update is out I will open a [security advisory](https://github.com/paolostivanin/OTPClient/security/advisories) OTPClient-2.4.6/cmake/000077500000000000000000000000001414446074000144105ustar00rootroot00000000000000OTPClient-2.4.6/cmake/FindGcrypt.cmake000066400000000000000000000030401414446074000174600ustar00rootroot00000000000000# Copyright (C) 2011 Felix Geyer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 or (at your option) # version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . find_path(GCRYPT_INCLUDE_DIR gcrypt.h) find_library(GCRYPT_LIBRARIES gcrypt) mark_as_advanced(GCRYPT_LIBRARIES GCRYPT_INCLUDE_DIR) if(GCRYPT_INCLUDE_DIR AND EXISTS "${GCRYPT_INCLUDE_DIR}/gcrypt.h") file(STRINGS "${GCRYPT_INCLUDE_DIR}/gcrypt.h" GCRYPT_H REGEX "^#define GCRYPT_VERSION \"[^\"]*\"$") string(REGEX REPLACE "^.*GCRYPT_VERSION \"([0-9]+).*$" "\\1" GCRYPT_VERSION_MAJOR "${GCRYPT_H}") string(REGEX REPLACE "^.*GCRYPT_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" GCRYPT_VERSION_MINOR "${GCRYPT_H}") string(REGEX REPLACE "^.*GCRYPT_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" GCRYPT_VERSION_PATCH "${GCRYPT_H}") set(GCRYPT_VERSION_STRING "${GCRYPT_VERSION_MAJOR}.${GCRYPT_VERSION_MINOR}.${GCRYPT_VERSION_PATCH}") endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Gcrypt DEFAULT_MSG GCRYPT_LIBRARIES GCRYPT_INCLUDE_DIR) OTPClient-2.4.6/data/000077500000000000000000000000001414446074000142415ustar00rootroot00000000000000OTPClient-2.4.6/data/com.github.paolostivanin.OTPClient.appdata.xml000066400000000000000000000270641414446074000251310ustar00rootroot00000000000000 com.github.paolostivanin.OTPClient.desktop CC-BY-4.0 GPL-3.0+ OTPClient GTK+ application for managing TOTP and HOTP tokens with built-in encryption. otp totp hotp

Easy to use GTK application for securely managing TOTP and HOTP tokens. The content is encrypted on the disk using AES256-GCM and the master password is derived using PBKDF2 with 100k iterations and SHA512 as hash algorithm. It's also possible to import/export backups from/to andOTP and import backups from Authenticator+.

com.github.paolostivanin.OTPClient.desktop Main window https://preview.ibb.co/jE5eff/main.png Empty main window https://image.ibb.co/garPD0/emptymain.png Add menu https://preview.ibb.co/c840mL/addmenu.png General menu https://image.ibb.co/dZit6L/hambmenu.png Settings menu https://image.ibb.co/jXpSY0/settingsmenu.png Manually add a token https://preview.ibb.co/dxmkLf/manualadd.png https://github.com/paolostivanin/OTPClient https://github.com/paolostivanin/OTPClient/issues info@paolostivanin.com Paolo Stivanin otpclient none none none none none none none none none none none none none none none none none none none none

OTPClient 2.4.4 disabled a broken feature

  • remove possibility to sort columns by either account or issuer due to GtkTreeView issues. This feature will come back with 3.0.0

OTPClient 2.4.3 contains some small fixes

  • fix a small andOTP export bug
  • fix wrong icon in taskbar
  • remove hard-coded paths from get-builder.c

OTPClient 2.4.2 contains a small fix to andOTP handling

  • fix handling of andOTP data when importing/exporting, thanks to Michal Borek for the contribution

OTPClient 2.4.1 bring a new feature to the CLI

  • add export command to otpclient-cli

OTPClient 2.3.2 brings a small fix and a new icon

  • fix incorrect code is shown when sorting by label/issuer
  • new icon, thanks a lot @bertob

OTPClient 2.3.1 brings a security fix

  • fix a memory leak when exporting to freeotp format

OTPClient 2.3.0 brings support for a new provider

  • add support for importing and exporting plain json Aegis backups

OTPClient 2.2.1 fixes a long standing bug

  • fixed a bug that prevented andotp backups generated with a long password to be correctly imported

OTPClient 2.2.0 brings support for FreeOTP+

  • it's now possible to import and export FreeOTP+ backup (key URI format only)
  • minor fixes to the first startup dialog

OTPClient 2.1.0 brings some minor enhancements to the UX

  • save sort order on exit and allow user to reset it to the default value using the button located in the settings menu
  • on first start, allow user select whether a new database has to be created or an existing one has to be imported

OTPClient 2.0.1 is a minor release that brings some fixes

  • show dialog if memlock value is too low
  • fix memory leak on parse-uri
  • fix a double free in case of a crash
  • better error handling
  • multiple fixes to db handling

OTPClient 2.0.0 is a major release that brings tons of new features

  • add plain text import/export for andOTP
  • add lock feature
  • add CLI (currently supports list and show commands)
  • support import/export of encrypted andOTP backups generated with version >=0.6.3
  • treeview can now be sorted by clicking on the account/issuer column header
  • QR code can be added from clipboard (supports both gnome and kde)
  • minor fixes

OTPClient 1.5.1 brings some small flatpak related fixes

OTPClient 1.5.0

  • add shortcut to quit the application
  • use native dialog for open and save actions
  • show error dialog if database is missing
  • rename "label" to "account name"
  • correctly handle empty label and/or issuer when editing a row
  • respect XDG_CONFIG_HOME

OTPClient 1.4.1 brings some fixes to the flatpak version.

  • fix setting menu not being accessible
  • fix window size not being remembered

OTPClient 1.4.0 brings full support to andOTP.

  • it's now possible to export encrypted andOTP backups
  • use monospace to show the database path on startup

OTPClient 1.3.1 brings some fixes to bugs that were introduced with the previous version.

  • fixed a bug that caused a row with an empty issuer to be treated as a steam code
  • fixed an issue that prevented the same item to be deleted and added again
  • the correct password dialog is displayed when importing something while the local db is empty

OTPClient 1.3.0 brings a lot of new features and fixes.

  • reworked UI
  • support for custom digits (between 4 and 10 inclusive)
  • support for custo period (between 10 and 120 seconds inclusive)
  • support for Steam tokens
  • add keyboard shortcuts
  • add settings menu
  • search by either label or issuer

OTPClient 1.2.2 brings some small fixes.

  • add "native" support for Ubuntu 16.04
  • add shippable support

OTPClient 1.2.2 brings some minor fixes.

OTPClient 1.2.2 brings some minor fixes.

  • it's now possible to edit the label and issuer fields
  • when a row is ticked, the otp value is automatically copied to the clipboard (which is erased before terminating the program)
  • a small help is shown on the first start
  • 3 new ways to add a token in addition to Manually (screenshot, using webcam and by selecting a qrcode)
  • some bugs fixed
  • cmake related improvements
workstation mobile
OTPClient-2.4.6/data/com.github.paolostivanin.OTPClient.desktop000066400000000000000000000004171414446074000243620ustar00rootroot00000000000000[Desktop Entry] Type=Application Exec=otpclient Icon=com.github.paolostivanin.OTPClient Keywords=otp;totp;hotp; Terminal=false Name=OTPClient Comment=GTK+ TOTP and HOTP client Categories=GTK;GNOME;Utility; StartupWMClass=otpclient X-Purism-FormFactor=Workstation;Mobile; OTPClient-2.4.6/data/icons/000077500000000000000000000000001414446074000153545ustar00rootroot00000000000000OTPClient-2.4.6/data/icons/com.github.paolostivanin.OTPClient-symbolic.svg000066400000000000000000000022171414446074000264420ustar00rootroot00000000000000 OTPClient-2.4.6/data/icons/com.github.paolostivanin.OTPClient.Source.svg000066400000000000000000001426231414446074000260700ustar00rootroot00000000000000 Adwaita Icon Template image/svg+xml GNOME Design Team Adwaita Icon Template Hicolor Symbolic OTPClient-2.4.6/data/icons/com.github.paolostivanin.OTPClient.svg000066400000000000000000000112471414446074000246260ustar00rootroot00000000000000 OTPClient-2.4.6/data/screenshots/000077500000000000000000000000001414446074000166015ustar00rootroot00000000000000OTPClient-2.4.6/data/screenshots/addmenu.png000066400000000000000000000406451414446074000207350ustar00rootroot00000000000000‰PNG  IHDR×!§ðXsBIT|dˆtEXtSoftwaregnome-screenshotï¿> IDATxœìÝw|eâÇñÏfÓ{–ô^ Ò[”EP,(g¹Ãr¢bןõÎvw<ä ˆžõ@8Š`éÒ•ÞBz¡¤^v÷÷G¤$!Á áûæ•—fæÙçyf6;ß™gfL@8àDÜzë­=§Nú ««k¸ƒƒƒ"""R/»ÝŽÝn·UVVæ¼ÿþûïMš4é ¨21@çôôôÿ \]]ÍfÃf³µn¯EDDÚ0“É„ÉdÂÁÁGGGRSSŒ‹‹û°Û IOO.((hpUUv»½µû+""rÖqvv&==ýǸ¸¸Ìýë_o9rä-•••¦ÖˆÈÙÊjµb±XbÒÓÓ7šŠ‹‹³M&S°öXEDD~“É„ÍfË4•––VÙl6ÇÖH{`2™ªív{½Áj³ÙHNÞGnn6V«õL÷ ¨ùÐZ 6¶#8-"í‘Ífcÿþ}äææœñí|S¶±999ŸÑ~Ád29:6t88%e?……ùDDD`6·ÎŽmrò>.¼px«´]ZZÂÎÛIMÝOLL\«ôAD¤%¥¦î§´´„âââvFÛnÏÛX»Ýnj05<@ppP«k‚‚üVi×ÁÁNº°iÓÆv÷Æ‹ˆS¹qÖþÚ)&œ½,FÓwĵÜ<¶ÁÇ~쪲Yöñ‡Ì_¿›}û³8bö& ,ž¤áW2nTB¾ãá‹_de×;™ÿæµ”odê]ÿ`uɼ7y,vÙÁdRómø…w$ÈÝ€ ¥Í¨¨(Çn··Ê} Úû6V™¡iÈQ…k™òÀߘ½¯ ·€ºtëLYÆ~^²•UË–1á¹)ÜÕÛ—NIC¸°´æ%{V±) Â{&ïS3Í«£/0ÔítµTP›AJêF濵‘ 9¯ðÁ}½pÈ[Éß'?Ï‚´JÜü£éÔ­Ñùdïÿ™Ïßv ûåý =±Ÿå‡HÍ>HŽßAÊÀpMžó$?/fÌ« x¸J›ÒšÛ¹ö¼móáªK„¤õ•óó;¯2{Ÿ‰|—ní¯©fzò’Wxäåøè•÷¹`Ö$F?ú £k_µé_×p÷<8ÿÏÏp_÷ßjÛ? Àž7<Ã3ÔL³Z̃^áço¾cË}½èO1Kÿý* ÒÌ$Þô ¿­~uc>*°ñ—B:¹'~é÷ÁËsPâæƒW‹­iO´mgÁ0X{+ÿÈ9/ÿ>X|‡Nãyⶺ`p%öÒ‡yèÒسæóéòŠÓnÂÁ¿+ @E1ÅUÀ¡oøäûâ¯ç‰?¬Îôîg}U}Ç££ÆpÉ# )®›V²—y¯>Ä„kF1|Ì&>ÿ¿ØŽ–xèpnyþž›|+W\~)_ó'ýðWŽPÎÂG.bâç9@1󼈤¡‘ôø×'eºœÍ´m m>\íöÖýa2ûì9pá'Ítaàиceßþ´fWm«,â@ú^ÖÎû€¯Ò¸.tuRRØ„Häïº"-‡Ùÿw/s˜ÈKndüÐþøüý~*hc÷ÒÅìtˆgøèÄÛSX>ó%þ³ÃL÷«îå†Þ^€ =ÆÜ˃÷Ý˃£0ÿž.I›¢mlËÐaa‘S(ÍÍ¥ˆóõ©¿@`A@ΡC@|kµòõ“ñõ±“<øÓ½W ”8@ ïçwúøu³~© `ìý<7ñ<¸ ßÔ±¼²æ–É身/&ðÆkWcr}÷1æÍílÝVÈÝ×\ÅE¿ü—O7Ú‰½à*®Ö9×vGÛØ–ÑæÃU¤µ¹â ääæN.pè°Ð“†5¢f@S÷W<<}ŠëÉô!Þ¯f¨°GHÞ@nîúÛl¢‚””š=Ô¹“¹`î±srÉΡæ™X'ŠŽÆí9øŸvÛ"ç²6®úV%­.:šXüúÓlØ•îÇ}jªùeõzŠq!.6¬•? é$QÑĘàו?±sb]Nó“êáé…;öYîrìž·A'ã®Q{ZŸ½sƒÞç–ÑæÏ¹Š´º—pÓ äÌç¥×–’ut4ÜÕoòÊ‚lÌq7ðÇ$¿«ZFðÇ‘°gÌåù)KɬïêäïÛGzQgîŸýãüÉÒ¿á­™ LžpB51WqËùsøÛ²W¸ã© ïÖSa›r:òØ3ciBO‚CBp ‹ï=ËÔäŽØíqŒ¿u0F.®´šælc¯»éæ&•ûü£ß·Ýo´ç*Ò–${çž=«IÙ²•,Âè7ê.¦Í|•»¸ß¦ß }çž»é"z†ØÈܲž_R qŒÀ˜[.¥« 7Ü-½ƒJX7{ëòN¬Ä‡‘OMã™kÎÃißw|4ëS­ÍÀÉÑLq·©¾ßÉýÃ;ã[°‘ùó—²mïZ禤"¿OÒЋ¸óž{)((8:­ðÈîž|?IC/2´-Sqqý±eË~$.®ãiWlÄžkrò>ºvM<í×aûö- <´Uû "Ò–/_Ú¬m¬ÅbiR¹¼¼“¾å5¨±m¬ÑOŹéÖ?‘¼?q±1¼ñÚ«˜L&î}ðaöìÝKLt4ÏšiX[m~@“ˆˆ´ Í Í¶hÚë¯qç¤{Ø—¼Ÿ{x“ÉÄÞ}É„†„ðÆ”W m˰p­ÛS=ÕôæïÉ6ý|ÀõniR¹Ïþ3«™}i¯Îm¬Ÿ¯/Ó§½q4`B‚ƒ™>m*,CÇøèœ«ˆˆœìv;ØÁÙÙùè4'''L˜ úøÑ`>m*wNº—ý))<ðÈc|ðÞ;†µÕæÃU×¹Šˆ´œælcÇß|[“Ê}òq£n´{Ï:ÅÇóÆ”Wñöªy(ãôiS¹çþÙ½g¡m)\EDÎa-±m«ÛíkVa·Û©¬¬<ÚGo//>ýp&“‰òòrÃÚj±pý½çZë´ç'Õ˹ÌÌÏ›·°ï*++ñrsdØ!x[O*YZn㛿£ôH^îNŒ6'÷“…ÞÔr"ÇjÎ6ö«…ó›TîàÁ§ÛU_xÚív**NÿYÌ Ñž«H«°ãçåLÿ«FcrtbûÞL·˜›®½…ãïàkfÁ·_‘Ô%œÈølݓɢ¯r͘ñXO«œÈñš³=p ·{Ò¾´ùKqô _iŸltŠëˆÉѰӵc™ùG ºê¸RyG*¨(Ê$6¾;Ýã£9Xj£¤àÐi•9‘¶±-£Í‡kÍέù#Òòrçáçæ‚ÉÑé„釉ò÷?fo¶Šÿ(çåžV9‘“iÛ΂ÃÂ:ç*í™ekV0¤o?ªN˜SV^†‹‹óqÓœ]\(¯(?­r"'Ò6¶eœáÚ~¿Ùˆ¬Ú´ ‹S)ñ]/æÄÍœ›«E•ÇM«ª¬ÄÍÕrZåDN¤mlËhó‡…ív{«þˆ´¤½i‡Ø¿k Ã.yR°wè@êÁƒÇ| vâà¡Tü;ŸV9‘iÛ2Ú|¸ÚlöVýi)‡ +øñÇ…Œ¹ä2LN¿=¶ºvîÙ‰°x»àìÆþ½Ûض7• Gܼ-M.'Òmc[ÆYpXXç¤=2³ä‡ï1UÛXôýŠÚiÕ\9b8Å6–¯ZN§ðÜ<¸òâ|óãw¬Ø¸ /w'.q9V  ¸¢IåD£mlËhðaé«W¯ ,, ³¹õò79yáá‘­Ö¾ÕZÍáÇ0 ©Õú "ÒRV¯^I@@@«mçOµ5úaégRƒk4((„ƒb±t8îñ¾³á•šL&\\\1™ ¬¬ÌðúEDDÚ2G€K/eh¥………üüó*Ìf3:øß ??co ž››CPÐÙy[¬¶Jë´aZ7ÆÑº”önÉ’E-s)NEEÎÎ.të–ˆ»»›6mdÆuµDs"""mJ‹„kuuNNŽ˜L&èÚµÎÎά^½’×+dED¤]k¡=×òãž²`2™ "1±v; Yi×Z$\ËË+ê}’ŽÉd"<<œ„„®X­Õ¬\¹‚Í›7RYYÙÝi-vXØl678ßÉÉ™ÈÈhºtI ²²‚~ø–;¶+dED¤]hä ¹9¬üô+v4ò´9·„‘Ü8ðäQåååxzzž²qWWW¢¢b !;;‹eË~$**†ØØ¸Fù9l™+ùø›=T¸'pŵ2Rm‹«.ɧ ÜŽ«·O§Öî @?Îú}¾=wUO|Z»;m‘µˆ”_7³+ó‡ JqððÃN·^Ý ÷p ©Ÿ©Ë\æ‹MùµSL˜Ýððô%4®=»†áyÒWâ2¶-ù/«sœè<âz‡[ÀFÚòÏøf/tºøzþÞÈ÷ik2ß|¸Œ´€~Ü0ª§µ~ZŽêlÖ,ZAFÐ@®A½O§Î\ÅßìÆ£Ç•\ÓÛõ¼¦í}&¥-k$\]éMLí#þʧ“]ÞÁtp­™ælq­÷•ÕÕU884=]]]‰‰‰¥¼¼œìì,22ÒˆŠŠ&6¶c“먟ŒäT*J÷³/§?A!gGºæmÿž[+I¸d<燶voä”Ê3YýÕR¶åWãäá‹ ?UG“¹çé©)ô¸h$ýBšø™*­ùÏÀhܪ)/>BAA6;×e“U<‚1C8~ÛîFLLkrrHKÍÁÊoåHϨ§X¢CÚús:Zh9ªK),*¡Øµ„j¨?\›ð}&¥9 W_º\0”.µ¿e¯ùœ/w@dŸ¡ »ÝŽÝnÇf³qâÍÿ«ªªqtl¤êÔ…lii)YY¤¦¦GDDäIe­V+V«µñ ­éìÙ_Žƒ Þ°woýCÏŠGYm6l66«•S-¦am6ºN­5ý±ÙjÊ5RÉd:úߺÿoßªÉØ°Šmù&‚z^ÂŽ‚q­ž¿g%߬ÜÏ/+79f@£Ÿ©:ù›L'eh퟾½t_Ï]Iƾd !세Gż&‡ì´4r…\·Úe^N±Q„s0¨EµÈr¸Æ1âº0*]qiÉ׈£Ù h·Û±Zë6²%ìúö Vd:ÐiØ5$…ÖÄVUeåi…kwww:vìDII1©©)ìß¿ˆˆ(BB~ûºXQQAyy#Ç×€ê´]ì-µÖ»å‹X¿wû{Z8îh“µ„ôm›ø5å …Åå˜\<ð‰íLj^!866¯ª}›7°-ó0GÊÍxúß³]ƒÜ0•ífñœµObÂ…±˜üÍ ˜¿¥”Nî')h?߲ВØ,%™då•PåäIH|Î?ÏBÚ÷Ÿ±2«¦{¿~ù¿SWKi|VPYUEUeåå”SEÞެߞÁÁ¢JpvÅÃ'‚>èK¤[5û6³aW&‡Šª0¹¸áéMÿ ûißÉÂÏÖq·ïˆÈÛ8¹¿”ÐyÄM ªòرn;ÒQdsÃ/´ýt#ØÕT{Èoô>ïÜ_Ùw ÇÈŒþC,õG9Êö²yO ¦}r4Xñ‹?ŸóäòÕîlIíKPì齃&÷Ü!£¨’J'–p‹"6x ÙÙi¤HpmXçgdRŒ™Ø¨°š¿û!~ýn5;QZiÇÙÝ—°Î}˜tòú+ûïÕéh‰å°&óíÇËH Ä/éŒ3`+JeÝš_H9x„2Ü ðáø/ŒÇ½&Žýß|ÄòÌšY;¾žÅ€ˆ~$Ù6²*Ó|üaìÊ=,ùd%™–>\we"^§·&ä,׬´ÛíØ¬V*+«ÈÍÍ&33ƒ"§`b£ìTïý‰e{kÊÕÜþð÷ßóðð¤K—òòòÈÈH### “ÉÒÒvîÜ~Ê:"£B }yžaÄz–³oÅì«§œ—¯/^¾µ¿ídÕ²M˜gÂ×âOͬ ïZÃò]5s<£Âð$••ËRëj!6Ê‹ê½?²l/8E…âk-ÄæêIphíùé‚mü¼ p #6êÄ[WËitF†Ëa6/ûñè$W_ uë†"ö¯ý‘T3ÎÎÎ8ø„቗©‚¼Ã&]€Æ¿Ålûn1«zÓíùvð‰Çû¤™Ž„G‡ã´{7ùù…@óîTf·VRZ\LAÖ¯ì)üý ¨÷Ћ+Ñ1!¬ÊÎ"5õ €ÒÓóÁItXíGÝ䌓‹a;èiãÐî_Ù¾þL¾×0¤Ù‡:›ò^5×Xû!Ö}ý#[Šñ‹Œ§›W%ÒÒ°5ø‚’hÛÄ–ìj‚úçx†ÐÑžÇúÌ}ìOÎäü°€Ê´4²í«`=‡59\kÛ¨¬¬`ïÞ½8Khh8qqñ-~èÏb±`±{ûDi9V«Â²²2°¸;›€‹‹ fšðìàÜmlΩÆ#!‰‹úa"ׂÏY™±ÔŠxºÔýņô劋»´‰CvUÅ%T~. D¼‡@qi MW;{¿ŸÅÞc'9Ð{@g*èMÈê,²RÓ8Ü/€å¤sDGOÒz“ð‡‹Ž¾¦“W1ÉKv“SÍ ×S½W§ùæ´ørdïfW8EŸÏÆÔœƒ «ÐT?|#º“³•-Ùv,‘]èZ׆½3Ý÷±=5™ô¤¢ÌU¤¥fa3{懄IÛѤpµÛíØìv¬ÕVœŠs8p —„„î˜ÍgÃÙK9ÓÌf, >>¾ìر•üR; Ý:ÓÁÍ„ƒ½ñ€-Ï/  `Çfì8vN1EÅ@Ý^²ƒ¹E‘7‡“‡Î@qI1Ô·¿VZJ)àíuò~mc<£ ôtÄÙÙKQQ¡X\ù̹Fºš¬ÌTRóûà•—A®Ýð¨ˆc@Y)LÞÄú]äæSQU°UV4«oЄ÷êt¿ù´ðrTS „†„4mpScL$töcû¦tö¥WžIJ¦‡°8bNo×]Ú‰&ï¹Úlvª­ÕXó3 T°Ê)™Í„‡G’••Éœùk¸âê 7Q3Ôn¯w?ÖÙÅà—p!ƒ¢Ý:›ñl^69¾¾ø¹)û9Ð'€Àã>6rÒ3©Ä‹¥9 ÐÔ4.ÄD‡²*3“”Ô<ü ²±™‚‰Žø-BlkXðÓìB¯AxU¥³rM2Õõw¡•Þ+ƒ—ã5oQGÜü:u&hóÒ’Ó(# «™È¸¨6qTEZO“²nTpuu5e%Eøøè*Gi//o*++¨8¼“=ÙVìNÎ5‚ jË»ávðõÅ(*µÒ!8˜£?xµÕk Ý;Ò££ïdÙªŠŽž¼³S’¾–U»Šq°$Ò#¢å¿ºDÅêy)kÙžY)$ŠÈc¶ò‡²²¨À™˜^éÞ1†¨ ¯ß¾a›L5aZUI€³K«½W†.Ç œ|}ðåæ6)Œë8˜L€•ʪÎκǑáHuÆ^VíÍ Ú)‚Ž‘¿{ŸXÎrÍØsµ½ìæÜ¸¼BŒ`6;Ôþí8áìl‡ý!õÐ.–ýh%ÐvÔÌBŽþ)úu¡Wäv–¦®bᇉ pÃTQHv±… †&´Ñ"NDöM¢óÁŸØµg)sÒ}ðïà…©4Cù¥X]ƒéw~wüÎÄÇÆ%’ØP22rÈÆDhTäqƒ½Ü<Ü1q”M«ð8ìAIÆŠ æp«ƒ7Þž@á>Öm ``¯V|¯Œ\ŽóN¨; î;øyßJ;äå]Í¡äýõñ±<½¼0QDÚ†Y“g,$öŠÂ'bºÄ²:m7ûÓÁ¥c‘§±„´MÞsµÛÁnkx_ÁÎÜ2œýBérù_xvl'Ìlâ•kÞÀç…™LìÜ„v‹·óÉÔ÷øò—LÁq$tò$ãû#Œúà.?î‚¿R¾zæ&fǿʌ›bj&U­á…ë_"güÛ¼quí(ʃ ¸ç¶\4óŸŒqßÃÜ·g°hC ùŽtz#÷LHÐÑw¯’=_½Éco­cç.à÷ÝÆà@óï^×î×Döã:vç9rÞ(îþc'vÎýŒ¯Öïã)˜ã'óХѴÕû;ˆˆ´G¨ß«ÕJEE………M¨²3cnèÁ=Óæ‘ô«?f8½‚N¼X9?ÿû1^OÊ#ÏL¦w@%iÛáíàCtÒU<:º3‘~ä|û ÷N™Åy}gˆ`Mfïጟt%V²rÚüë­%œÿÚ‚š»ôß2åÕÕÜû$ï$EáY’ÌÎÂÀúïYÛh»E|ûÚ_™SvO¼z ‘•©l^ñ?~©¬¯"w èÆ”¯7}S !€më6T9P¶qG®¾o pÃvÇöçÿ ùê™§øŸÇDž™>˜ÐÒmÌüÛ‹<ïý:o\]÷TOU.ÑŒ»g,ûaͬ—yéY"ÞOôï\×;^Ä-§“ãV¦ýß«<øhÆÝùgþ~[ EK§pÿô|;è9.ó­oYsèÐAªª*knà^ЧþœHÓi]J{çœòš³ºë\œœÉÎÎiýãkæ’È´)©¤Aóõ¸ˆ#v ãòp.ô l¨p#íæ/gÉ: £§Þ@Ÿp »%3÷¿ë­É¯?:¿µšuy×p¥¶¯Û@ð%#pün3›*.eˆK9ë×o#jÀŸÉýç7vbügÈó¼zq݈8ƯÞDáÕaµô»ÒõÂË8¿ @0—ÿå:–ßô ßìÏí!¿o]wz ý¢.`XÏ7YV1Š?‰Ç L×w? %“ßn¨ßÿ€³ú:W‘æh¡‘:&|:]Ì=ÿµ¿|ÇœÏçðàËøóËÏ16Ò²2H7wäêèúï\Ìûs—óËîLòKË(Á—¸nêl±à]zw„ ÊÕ—ðÆäûØ1ârÆ^5œîM¼t\»ÙYdšb¹:º‰íú÷g`Ìû¬ÝPÌ•bíz'ú?v%æí±~‹•!=eíf ƒnˆ„œÅdÛeê„qL«}¹ÝZ!‰õÞåÙ+†8ÿäg•ƒÝ¨uí@‡¾ØÓmØ©½¡»‡….ÕT7ç­""ç€ëLP˸û¼ó‰îþ={W=8»»ÉD½·(Î]Ä“O|IÈíwñÄ-¡Xü¶ó¯qÿi™î™ùät×.föÎt”ö IDAT‚ù}ñ0IMî” › ìvjžhÒÖµˆÈ9äÌÜDÂäMD˜7•ee5{z!¡„U§\ÏæÒ-›Ø>Œ›/9˜P|Ü›tuqä0‡7VÈ…°þc˜üü›Ì¸5•,d[sÛ ‹ Ò”Ìîä&< ¼Vì€þønÚÀk6p¨o_€N}{Sµq_­Û€y@:…ζïmzÝäïe÷á@¢£\Ïܺ‘£Œײµüû©©|¾t»2‘w •õ‹þÅ«_Vqá°^5°òÂè¤CÌ›>myX+ HÝ´Ž]GÀÅ××Ôõü°·²‚T–ϘˆÓí‹g1þù¬[ºÜ#ù¤l^ÊÜÕé¿Í·¦³~ÕnrKª©*ÊaÖ¬Þ^Íš‡ÏÆ -cÑÛŸ²ñ@Õ•ìÚ°“F3½c?¸l`Ö¼ýôí×`JèK¿¼oùpY)t­ :ÏÁŒVÉÂi3X™^DUu ¹{V³t뱃ËÊÙ³árʪ©(ØÇÂ7g³«ËŒêÈ™[×""rT å¼D–ÌŸÁœÚ<ˆêÎðÇ^d\ÿº3„ ™üEï¾Ëk“ÿËÁ Wü#º0æ/}èÜ÷F»ü5Þ|âvæxDÐgÄ@|}š}éÌ “Ç‘úï×øó÷fücÒ§3aµ³ ³XûåǼ>-—‚ G,1½ùËä1D5»W’&½ÀÄéo1íþä™;е›_ã+×Ô…Aýì,ø>‘=j/dqL¤¯¾Û0‰uƒ~œéwç‹Ü7ë>|úNþ^dÂË?ŒnW…0¤»O힦÷¼5opñ0¶E9µ=MâþŒkYðØt¨BDä 08\pñôÂ¥ö·bW3˜Ýðöòª WiÖj*«í­Ý ‘sF+<§€Õ3¦0kÅ~² +põïÈà “˜48„}Zú?~h.>w½Â3b*ÙÃÜ·g°hC ùŽtz#÷LHP½KQMÆÒ÷yãóìÌ-ÃÙ/”.—ÿ…gÇv P™ÍÒßåóÕ»È*ó"*¾ã&MdpÀzþqÝô|¦+›ÞÏÏé1ÜûÑÿq¡õm7Ú·õücÜl<®ïHî²µlÏ8‚9¤'×ßw?cã]OÝWªØ÷Í[<þî:vf—àÞ—?N¾ËbœkÚ®ÊaùÞåÓU;É,v'¤S®¿ãf††ÙøêÙñ¼¾Á Lá²ÑÿÂÔë/Ì{v8®†¿¯""R§ÂՇ褫xttg"ýÈùöî2‹óú>ηcŠ®cÊß>¦ô²¿òâE˜(ä«>Åÿ<&òÌôÁ„–ncæß^äyï×yãê°“›)ø–)¯®&àÞ'y') Ï’dvÖ†U9?ÿû1^OÊ#ÏL¦w@%iÛáí_ûÚªUL{Ó•»î|ŽÛÃÜñp-ä«gk» }³&³÷ðÆOº’‡+Y9í þõÖÎm AöÀNµk WLÃcÁå|ÿÚãL{ï{’^¸_*X÷ÖãüsÏ yú>úú²ö?/óò#oá1ã>F>;—¸îäîôXüä9Za[k"$¡±þî8š] šD—Ê4Rs)R•Êç/¼ÊÚÈÛùÛ-]qÈý…;1þîaÄy9ãÔ‹ëFıkÝ& ëk¦¸ˆ#v q‰qy8ãØ…>ñ¾5ó bÎç’"½quó§Sß.Ýuöàâ‰÷rY÷`,~Þ¸œªí&õÍ•ø¤aôÂÇ'‚áC1§¦’vª¾àLç?Œ$©K0>¾Ñ\28kJéG–1ç;G®¸ûÏ ŽôÆÍ+‚!wÜÉ%ŽK™·¬ÈwLDDš§U–^¼s1ïÏ]Î/»3É/-£_âªëæV±yÆód¦—ym,u—“K¶ýW¦NÇ´ÚIvk„$RøœØHØP®¸„7&ßÇŽ—3öªát·Ô.nVéæŽ\}âè:˜ÍÇüzª¶›Û7ÀÙbÁ»:ŸªSõµ,¸VWQ ™FªCgFw>æ{’¹3‰]`]f6àÕ`=""Ò2Î|¸æ.âÉ'¾$äö»xâ–P,~Ûù׸ÿS ’Œ‚Pî~hóÞ˜ÉâK_`Tàé§ù|úâa’ÊÄc™ùät×.fö‚ùUÛÍí[súz*¾C{a þ=‹Ÿ³K©,ÍaõÌ·Yâ0’qƒÝkŠøúBÊ.¶—’w¨ˆêST)""¿Ï?,lî{#]þo>q;s<"è3b ¾®¿pÀî¸êKxw £þyýî|‘ûf½Ã‡OßÉß‹Lxù‡Ñíª†t÷9ùðiak¿ü˜×§åRPáˆ%¦7™<†(<2ùŠÞ}—×&ÿ—ƒ®øGtaÌ_úÐ¹Þ rOÑö©æŸB£}=WMz‰{g¾ËÌÇ'’SéIx× xòï7ÐÝ©v5ɾ|›'ÿ´–ànWóôÓ—ѤºEDät˜/^h¿ôÒQ²Z­”——“ŸŸÏ–-›éÝ»ïêž´7®'1±'~~~¸ººb>n´˜ˆHû²dÉ"]ö(""b4…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁZày®;ø÷„§)»w6õ;aÖÊWñ®Sgý‰.Ua?Àš¹kp½ðJzZŒïa³Ù ùå3wõvv¦äãOB¯aL¸a0áÎu… ˜÷Èͼµ½îw.¾!Ä÷½‚»&^F¼Gc ”“üí§|úÓvîÉ ØÅBhÌy\|ÝM\ÕµÞÌ6îÀÿ˜tÛÏŒøè%®ômþËEDä÷9ãKo’òý,[ø%^/£§¥•»hË`ñóÏðÎó¸yüÜc¡"s'+æÏàÞ‡÷ðÔó·ÑËë·âñ7Ná¥QØ­U”ÜÍ¢·§ðÔ»AÌšÜ×z8ÈO¯=Ëk[BwóÆÝ†Gi.»6¬ä°µþWœI3f}ÈŸnùckwCDä¬Ò6ÃÕmÌÐÚ½àзïñVF^zýº»×N ¥s¯DŸ½‡×?ÄŒ‰ GW¤£«'Þ^5iëã;‰ã±`ê:öЇÄzê/üi¯oŽå±7`©vj aqõ•>ó>Ÿó€VD¤Z1\«ÉXú>o|¾‚¹e8û…Òåò¿ðìØN˜ÙÄ+×¼Ï 3™Øy=ÿ7ë;’»l-Û3Ž`éÉõ÷ÝÏØøÚ=»âí|2õ=¾ü%Sp <Éøþ£>x˽Nl·€Õ3¦0kÅ~² +põïÈà “˜48Ó‰EIæ³·rÞu÷ÿ¬uÌ\vãþûØ,»éI.r«)ív;ÔSs4æ}º–Økß9&XëQ•Ãòÿ¼Ë§«v’YìNH§þ\ÇÍ «=&]–ÌÿÞ|‡ë÷SàAïžûú’=Ì}{‹6¤ï@·¡7rÏ„5ñÝWÀŠˆ4Oë h*ø–)¯®Æo쓼óŸ˜õÒ\•ˆ¹¾²ÖdöŽåŠIÏ3sæ+ܲƒ·ßZB.E|ûÚ_™SÔ^Æ”ûÆÒß«”Õ 5ìCtÒU<úòtæÎþ€×ƺñã”Y,+«§hY É9a$vó©·&sçn$BrF=3íUÉØÀŒÙk ¼øBê« "™}™¡ôîáßPg Ö½õ8ÿÜÄ O¿Ågï>Í Á[xå‘·XWPʲ©Oò~fgþôâ¿yçod`¨:úúB¾úçSü¯úbž˜þ!Ÿüó6BÖ¿Êóó3iódŸÏù‚³>lÖkDDÎU­®ÅE±[ˆKŒ#ÈÃÀ.ô‰ohô+ñIÃè„OÇ$bNM% 9KÖY}û ô ·Û‹‹/> 6l"$¡±þî8š] šD—Ê4Rsë)zð°Ð¡¡AU¦ø[‘“c;:iÇŒ‰Œ5šW\Ã5“ß%í¼ûùÇ;Õˆà@.9vËÖ#˘ó#WÜýgGzãæÁ;îäÇ¥Ì[V…ËY¸Ò“ÑwßÊù1þø‡ŸÇð= ¨{}î,ÜØ‰ñw#ÎË· ^\7"Ž]ë6QØH³õQÀŠˆ4M 6a2Ù±Ûë›g‡šDÊÕ—ðÆäûØ1ârÆ^5œîM¼äl±à]_³w–E¦)–«£›ÞÃâ‹yîr~ÙI~i%øW]OÁþøó3ù@p}5q¤È‹å·ï(ušŽ¬x»?rçòkúÐÐWÿXÉá< ¬2™i¤:tftçc*1w&± ¬Ë̆¬ ÒéÈèØ^Ÿ“K¶ýW¦NÇ´ÚIvk„$RÔ¿OÞ0ggçS9ǵ@¸úañ«"ûH9œ0>¶°ðX:ÕìUšùät×.fö‚ùüe ÷ôp9¹ˆ)˜‹{¨¯>æ³Eï1?9“b'_Ââz3"¡ ðaФ—¸wæ»Ì||"9•ž„w½€'ÿ~Ý<vß“¤½ø*Ïüi~!tÔ…`׺‹qœéwç‹Ü7ë>|úNþ^dÂË?ŒnW…0¤»Ï)¤O½‚UD¤™L‹/´_zé¨F Y­VÊËËÉÏÏgË–ÍôîÝ÷ uï4eÍáÎÛ7så§ÏsY³w…›©²„b<ÛÀí8ªÊÊ1¹¹¶¹;ƒlܸžÄÄžøùùáêêŠÙ\ïW""íÂ’%‹ÚÜvØ……8ùañ;¬µ»!""´—ÃÂ"""mˆÂUDDÄ` Wƒ)\EDD ¦p1˜ÂUDDÄ` Wƒ)\EDD ¦p1˜ÂUDDÄ`-®Ì{d4#®¸‡OÒìõÌÏeöƒc1j2ŸgßzÓmâ•kÆ3õ—†~9=-¶çêâœËìWP|ÂôòõŸóßGêyl¸ˆˆH»Ðbá3âR¢×~œ}¶c¦æ0ÿãŸ5’®-Õ°ˆˆH+k±p5Ž`Âð æ}ô#…µÓÊÖ~Μœ$&ŒŠà·G­°zÆ3Üqë¹rìu\{û¼±<›šÊëùǸG™öÅ»iýãƒðñ‰`øDÌ©©¤5©§ª»aný/ _Éj–m«M×¢5,ßÖ…!IŠVi\ ?,½fïµãÄOx(µ„à±Sà”_ªxçbÞŸ»œ_vg’_ZF ¾ÄU×_£³Å‚wu>UMìAsê>Ž[?†öƒé+¶ñ—îÝ9²j%[ºæqß&6,""笖¿Î5`7ÂÃ2’[F…±Ò>7ðÄ‹¯1óƒ{H2ªíßU· ÷£dÕ*¶Û‹Yµr‰ƒácTßDD¤Ýjá=W'zÞú23˜[ºe;‡ñØ%ç\Û%SeOâèˆ#‡9t<ºíØí ÿîÒïL™Î²µ1¤m퇭""rj­~‡&_\S×óÃÞBÊ RY>c.šúbÏ(büóY·t¹GòIÙ¼”¹«Ó›X· ®®e¤íË¢Ìn¯çwÀ¹CT°ô­OÙÚm0ç{¶Ø""ÒŽµz¸šûÞÈc—›YòÄíÜøÀ,óÈ€€¦¾º37LGÀÆ×øóm÷ñ××QÙ±3uŸ¯»3WLH¢pödî|W=¿8ÑoÈ*8x ÊVi ÓâÅ í—^:ªÑBV«•òòròóóÙ²e3½{÷=CÝk.àž?odÔGÏr‰Wkwæì´qãz{âç燫«+f³¹µ»$"Òb–,YÔú{®mÝU«Hîyç+XED¤‰®ÊáûvÓ{ð<[»+""rÖP¸6&õG¾MéÉj·UDDšî \Šs‹º™ó[»""r¶Ñž«ˆˆˆÁš®&“ “É„Õj;uaÀn·ý»9W4)\ë6ŽxzzqäHAK÷KÚ‰¢¢#xzzáàà ‘sF“÷\pttÄßߟìì,ªª*[²_ÒX­6ÒÒRñ÷ÀÑÑ…‘sC“÷\Íf3ÎÎθ»{âííË®];ÉËËÓ!b9‰Õj#//;¶b±tÀÝÝgggÌf³ö\EäœÐäѵáꎟŸWWW>Dzz*V«µ%û(g3^^ž‡âææŽ»»;ÎÎÎÚs‘sF“µî|«““nnnØívqtt¢ªª «ÕŠýøÇËÈ9ªî(GÝßJÝ““ÓÑó®""í]“÷\ë6š...G÷bÝÜܨ®®Æf³)\øí‹˜££#ÎÎÎ8;;ãää¤CÂ"rNiÖM$êÖd2áè舋‹‹‚UNR°f³í±ŠÈ9§Ùwhª غ' p•ãÔ©.½‘sÕißþPN‘úiø¦ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*""b0…«ˆˆˆÁ®"""S¸ŠˆˆLá*"òÿíÕÁ À°{¸ÿ4‚ë¹DAd‚þ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3W¡ï7øIDATˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ f®3Wˆ™+ÄÌbæ 1s€˜¹@Ì\ ¶ffÎÙ¯;à×Ç >ëV•IEND®B`‚OTPClient-2.4.6/data/screenshots/emptymain.png000066400000000000000000000235441414446074000213220ustar00rootroot00000000000000‰PNG  IHDR×!§ðXsBIT|dˆtEXtSoftwaregnome-screenshotï¿> IDATxœíÝy””åïñ_UWïû¾ït  !T„„HLÌfÌbï$gŒq™$³žÌÄÌ™MæïLÆ›“Ç™dÔ£" â†ÈâÂBÓûÞô¾wWwWÝ?±»¡×÷y©¦ù~ÎáP]U]õÔö¢¯<^v~‡ÂcŸ¥›¾ ¯v¥’üGŸçžÿzBϽW¤’²ZuøE(>5Oko¼EŸßºJ)ÎÝúÁMÿ[o|GÏýÛßwH|÷_´é½úõ½kjàb÷6–ª¢Õ£è´yJ 1p‚˜5|9ÏÏõ9v ™®ö’¸Ú/?FhG¿¸ÿ'zº¤WÁñÙZ°h¾z«ÏêàK'´oÏ}õÁ_è»Ë£”¿vƒ>Ñ3ü+mg÷ép­”¶l­ò"‡÷ Ÿ%5J’C‰‹>®‚˜~µ5T«¼âžû÷Cz¿þ!ýîû×*X’ZÞÖ?ßûS=_éVp\–ò]«¬þVÕ•Ôÿü‡S‹?µJ)cÇÙ×¤ŠºFÕG7ªW2²¸–>ó·ºëºtëÃÏë3p‚˜U|9ÏÍå9vÂÅu6¼;g6ŒW»>|ìa=]âÐÒ¯ý\ÿtçRE9†÷/}é!ýðg¯éɇ~«uß­m?ú±¶ÿ­Ãÿç6ýù³Òußþ±¾¿ø£S+{\’œZöåëÇë†÷ó4íÐ_}HwíÖñï_«UêÒÿ÷a=_é§%w<¤þ浊þp›÷9:Ú®ü IcŸôGmÒÏž)Twp¤Âm»>0—0ÇÚc’Í`½>þ7[Æ€«Zë.ýnG£œù·ëo¾ùáÂ*IAÊÙòýÅ–XykŸÓïßêŸñY8ã ´0^R—º$5íÒ¿Ú&gÞ—ô7ß±°JR@‚–¯ÌSØ¥Nh`·~´õVÝüÃÔõá~ÝÅzöá¿ÐWoÛªoýªîúét´Ísáø?¸þF}ã§éÁ{ïÔ§?µE7Ýö-ýè‰cêPŸ^øáFÝõ?õ’ºôìµöúZûW;/ZÓq%c޵ï1&SVª¯”±ºPi¨Õ×*DC*)«œöI{Ü:WU¬wžý^®’”»@þ’ÊËU&)mõjeXúì´z=ý×ßÓÏv5+ãæ¯èöëãÕøúcºÿŸw©õ£Q¨è:íÌÓÛ6)Ï[®·~óOúÏü´ø3÷èËËÃ%jé­÷èïߣ¶-”Ÿ•!WI²°ïŸŬ1àêÖÓРNI¹Q‘—>BB¢%Õ75IÊ›â©içßnÔΑ{….Ô·î¹EI’ºÏS·¤¼èè™\’Ž=£Çö+þ³÷éÁ»®‘SŸTTÅgõÐ]ÚÓ±YÛ‚ÏoáWõËŸN1’¢Jtë¿Ò‰“íúóÛ>£GŸÒïy•³î3úss˜cíÁ'3“IHP˜¤ú†I±¡©I’RS.Ú¼hÃ4-NRhX¤s—iݺ)/zxSáÐädEHjh8wé󜢶òòáW¨¼Wëþ8òÕÕkø;±ÆHÌÊR°N©½£CR܌ϸšñʘLV–rÒ±7_׉» ´xÔ£fPG÷¿§.*7'u':zƒ¦‹df)Û!{ûM¾k¡ÌðiphX¸œ’r>û÷ºoÃÈWÞþJ¼¸q;Ÿ¡yì]¸íÁß\ÉÄÞ¬;6ÅHõÏéŸ~þ†j/lÍãQÃþÓCÏ×É/÷ËúÚZƒ!(f“¾¶9VÞê?ê§¿xC5î‡ uªôx©Ú$Éé~÷ô¨û'㟥4IuMƒÊ[ºT×^øW ”)¾gÕÏÏ)©_]݃–.p5±í•ëWîü¶$é¿~û럆Õ1f„hݟݯ[>xPÏïø‰nßÿ;-ÌK’£¹X§K›åŽZªïþà‹Ê6úT5Xkþ×ýÚvêA=÷âOô•·W~^š"›UUR¢ªÎùºïé_êóqiJO’TµKÿþ›…º÷«cN&û3úÆuÏè'{ÒŸýÝiݸ(VŽöJ®Ÿ§¿üñ­JžÂH’’“åT­öþúïõHéþ{m§Zþ.?uMqNºé;ºïÆùŠj;¤çž{C'‹ÏØÒ¸r¬½~£¾ó½{ÔÖöÑÇê¶wtèÏï½Ok¯7û9öŽ®®K?Äöî}SKf|Âw|søΓ¿™ù3˜S§Ž[ƒ §N׺u|:°ÃtçùÈÈq¶˜£½}‚Ïc¢9Öô·âÜqç·TZV¦ÜœlýòçËápèž~ ³ÅÅÊÎÊÒ=þcçÅÖ€)™Î¢9=ú¯?×wîþžJJËô½ûÃáPqI©R’“õË_Çš›×ç¾ ßŠãõz}úo¶Œ0Ï£üÜyr¸\’¼*˜—«šÖip`Ô±Z:úÕßY£œ¼Å’¤ÅyYjìñ¨»­iFÇÆb޵_9ÌõÍ-Š”Ãå?fÿfeÆÅx5; ø¸L5·4(5*nÚÇÆb޵‹+às~Ús`¯6¬X©1‡ôöõ*00`Ô~êëï›Ññ€±˜cíÁâ øØ¾Ã'ãߣ¼‚›äsXpP°:ûÝ£öp»3£ãc1ÇÚc’?ôúøßl`âÊ&•9 >±ù¢…U’’bcUÑØ8âY°¿›*›4£ãc޵ƒmoÅ1e6Œ°Cs{¿^ý}å–OÉáÿÑ÷ÁJÅe§µ(ob"žª²âSJŸW “ÅJ u)8"FýS<[ c"̱ö˜$ _ê¹ôå5Ƙ秗^{UŽA¶¿º÷ü~ƒºeÓêò„ê­}o)?-]ÎàPÝrÓ&íz}·ö:©ðmÙô) IjëêŸÒñ€‰0ÇÚcÜ/K?p`Ÿåççw¹ÇtAUU…ÒÓ3}vþCCCjj:§U«Öøl `_Ïó“ͱ¦¿,ýr÷•kbb’jk««ààË9¦Q|õÇöþþ>Õ××+#Ãw‹;ØÉ—óü\ŸcÇ]\322ÕÜܨãÇjppì.ÔÔ4íÛ·Ç'ç¨ÌÌlegçøäüÀn¾œççú;n33É[qÀt±¸`˜‹OçÀ,×àààäÇSæjiiöõ˜S\Û·ÿÉ×c`NqååÍ÷õ˜S\’´eËV_cÚꕘxe~,ÖlÅu:>®s¸.1×½ôÒvÞŠ€i,®Æâ €a,®Æâ €aã~åœÔ }Ø©Óýã#xÁÍúra¢ùQä©Ù§ÿÞ],wÈ}ê¶UJtøzDS3ØÓª¶^¯‚"bæïëÑHR•Þxâu•F.Õç¶-U¤¯‡3 uªüøQÕ6«©­GÎÐhÅÆ¥já²EJ ujª©ÍAõì‘¶óû8ä¬ÐH¥ä.ÒÒ…) »è)q¯N½üŒ4ø+ÿ¦/j]ÊÈ;¹W•{ÿ Ý%RÞ _Ôú´ žO•ê•'÷ª*~…¾ôÉ]þoq¶ér Öéà‹o«:qµnY¦K>œj÷ë?_9«k>­Ï]-]âwfßc³Ù÷Ð@Ŧg*+sø_R¸Ÿ$?E$}´_zLàeèÌxT]V)·$õ”«´áÊùåÖS¯ëùí»t¬É×#Á”ô×èÀ‹ÛõÚÑ25t;«Á6ÕÖ®çwè½:·¦û˜ ‹ÏTVFªâÃ]è¨×™÷^ÕËïÖëâoÝ VVV¢r«²¢^£ïåçT]3 ù§)+y¶‡*›.Ç`Ú»zÔÕÑ}‰ënê¿ÃcÓ1Á+×(Í¿nƒ>üˆ‰úƒOkÇi)ýÚ *L¸,c³n¨F¥•n¹âãÑØ¨²²:&¥ÐÂaØ jÞ߯S­RâÒMºaY¢‚ÎïßZ¼O»÷•ëØþ£ÊضrJ©Ö£’äPâ’ Ú>¼Ÿ·ç¬v=»_5¥¥:W˜¤Ô1#ÉÌRÒ;õª«ªÔ¹ÕÉš¦jU÷IþÙ™Jñ³ï0Å–Ë”«›>Ÿ&· ¦ür`&¿Œ0Áâ:ý*zåí­õSþM_к”óË–»X;ÿ°O51Ëõù-!:ðä Ì/PX{…j›»5¡äÜéºeÉÓÐ@‹N¿÷¾>¨nR—'HQÉyZµj‘ƒ¬5ÜÁêrU8•º`¼ÏëÝŠ2Õ¦(uäê:Ô¥ª‡t´¼Qm}R`¨¢s uóòd¹&:l°MŇÞ׉ê&uôù),:IùË?¦E‰ÁrôžÑ‹OTCÚuúú ¹ò“Ôrø9ýéX·òoº]ëKõÊ“o«'§@Ñ=ÕªmîÖ€˜’ó µ~i¬*vÿ·öÖ ïô®'tZ’FœÖì0¨–³ïëS•jìpKþA ÊÐÊëW*=h‚ü“\7)šøþ0TªWžÜ'ǵkÞp\%}òO_©O¯Ï9¿ ù@o‰Ž÷È»\ë/,¬’äRô¼µZsîœv=­•˵1{f· #$^ñ¡RM§[n.nNÁÊN:¨ºº*•7*ñübÝZS£.ù);3eø¾ãmÒñ×èts§zÜR@H”Rò—«pqâÅ×ßd÷ãÉn«™°ãr •j÷ï÷ª*yµîØ”¯Iž®J½wð˜*;Ô«`ÅG:44îïä¨ü’ÉZã9¬ýÍ[+|f×®p_Ä*gA¦äVyi­<ç÷uWUªÎ+%ædŸ¿c ªþl‘š±ÊžŸ§G»*޾ª7ÏöJêÒ©W_Ö¾’Eæ.Ñ’¬Põ”Ò®·KÔgilƒª*«Ò 3Y™iQÊÊŒ•ú+UR;ò!Ô¯²½;ôÊ‘ u&káÒ¥Zœ¯Ð@¹&<¬WEo¼¤=4È“§k RäßQªwvîÒ¡fϸ#Í«æòb5;b”=?G±ÞvUÙ«cM%Ì/Ôâä@I~J\P¨5……Z3?nv½â>wD»öQí@¤ò®YªkòÓépÊ8Éa“šÊýÁ£ÊÃTíˆSZb¨œA¾[X%©­M-^)2-UèRZVªüåUkkû´OÚ;äVwG‹jNUq»¤è8Å_òޤ¬¬$9Ô£ŠÊ»e·ª«Û$¿Te¥ží”@¨Ró¯ÕšÂ¥Ê êPÉûo誙|;–ÝËp9¼Mzo×:QÝ!WÂ<ä&H½½ÿ‘ëç1™ªySšÿp5²øÊUr¥å+7¤TT–ªz(M~ƒªª¨“Ç‘¤ÜìÐŽ»X7ßt~#‰L§žzñ¤jJ*ÔÑ©# ƒ Y¸ZŸXž(‡òÔþ”öU—ª¢žæÏ´É T«¤zPΤ ¥H™™Šyÿ*Jk4”–1üì·å½_Þ'¿ÄUÚºyÂFþ~Ë‘ñk>¤#5òK]£-×ç)HÒ’$—žÞyZ'ŽWjYáÇw6oZ¨`I]A­zê½Fkì×Ê…ó•ÝpR'꼊Θ¯…É3¼länoS¤¨¬kµriü¨WÔ6©†&¾?|xMþ˜¶Þ8V$»î.¹%Å޳ć†*TRWO¤˜)žªW%¯=¡’‘{ùÇéÚÂüÑ÷Å‚2³”| Nµ••jY§˜¾U7K~iJ»ðHׂõŸøè—»T¶ó´εI)SÚ‡&»­fxãØ~9êŠUÔ)ùg®ÕÖ볆7pJuê?_9;Î/8•>ÎcÒ;ÅùWË‹« Z¥Ž /f©5ª¨’3%GÙÁÒèÖr^LœâœRWw·ZÚÚ†Ÿå~°S¿ý`䑺ÔÙ%ÍtötW–©fHòë­Ò·$õjÐO¨*SÕ`†²\Ò@k‹:$%ef^4aM|X›º$%§¥]xÅä—”ª×i·¶ªcÛY†EEÊ¥Fõ÷÷K>ØNsº’3”ì_«º“/ë÷•‰ÊÌ+в‚4…ûM|Ødú&»?DÿÑéœ5‰Ü?4T’ºº»$_|„žõHŠŸÞ똰øLŇ¹¨Ð˜$ed¤(&h¢m3”|@µµ•ªh[®ðæ5xJ͹…ìÚËŽèý3Õ:×Ú­þA Iòô»§56i ·ÕLŸùØ|9ú»:å–”œœté-‡§c²ùW-ë‹«¤è¼ùJü *+-à£ÑÔÔ {ŠåˆŸ¯e«>P¥}Ëtɘê³ÛÊðåÃé¾3ïË›öü‡«‚‘ÅU!9Zþ¾Þ¬)Ö>O“]éš—0þñ[Ôà–ü’"åT„*ÔÙãQLR¢&ø­©ë¯TI­Gδµºý†yf_‘^zꀪJ«4•#ÿ˜E¨ZMååê\P ðµ ‹ŽV˜jÔX[£þ¹ ”äi¬Sý€ä­ˆïðy¶µ©URœ¤i-´úð?$÷%·^™œ¡ÉZr]²–¬îVñÞµ§ü¬ŠV(1e‚Ã’'¼nœQQß.UB|-8WKr«¡äŒöî×Mk²î”$¯º«ßÕ¾¢.9£—ꚉޛiH`F–’Ô¨¦â]ê”#)Cé#fù¦Ú:¹ ×jQ²¤–6½# /JNçðb:à–[RH€ÅÛj¶\Ž1§í©Õ¨¹¡AƒùSžÇ}LNwþÃUÁÌâ*eÍÏÖʳ*¯–rs”>ö”›OiÏ¥„¸UwöŒÚªE™rE jiú)í©Ø¯_oVv|°ýíªëŠÑº ÆýûÒDú*ÊTçq(5#}ô>(CY‰UWS¦ wŽæEhUÎYí.}_Û_nÓüô(¹:Ô«/šè°…Z–rF{«ê¥=ʉr«æÌu:¢µüš 9ÝJˆ•*›‹ôÖCJð6©²¦CÓ¹ºÃÂÃäP§ª¿©ƒ­Ñ’b´dYƬ ÆCÕ‡õF•WqÁòìRm“[R¨‚‚&>Lθ‰¯›¨ÆïöóWÆÇV+¿é-ïÑ«*.6LŽžV5µöh((Q+Ö.Vôåø“Àte';USÓ z9”œ™>jc¯9Ô¨òÃÒ¬îêbuJÃyÔ®È0Ií¥zïH¼V/óámeòr,sÚñ ´8á´Þ)ݯ—œ­Ê TSYù¤ïÿ19…ùWcO¥ýRò”&IÊɽÄ{I‚äh¯ÐÉ%j÷OÖ’Oܬ•‰~’5ïãŸÔ†‚D9[Kuìè ÕtÈÏéÔôÿ $I}*+«—ב¤¬Œ±a&HY™‰rxjUZÑ/)@×}J7/ÏV„»N§ŽÖ±âzuöôË=áaÁÊÿÄ­_ 5žÖ‘“•ê ÏÑê-›´,Ú!)L ×®Rvl ºkJTÙæ§ÔYÓúT£ œZ«À¾:U¨±¥[½3º>ìÑ;ЧžúR8ò¾Þ;^¢¿å¯þ¸–ÆL|Øä×éûÃeœ®u[·jÃâ,%†zÔÖpN WJþ mÙ¶IKâ.×_ˆ”™ýáã/^™é£ÿð¶`®Ë—_[‰Ž(U[x².<Õ¢ÕJPíÉSªéõåmeòrŒ=í0-Þ¸I+²#Ô_uRG>¨R\®Ò'y60ÑcrÒùWÇŽ/x|YúPö<õªŠ]c>fЦTã —Íã:×9sòºoþÃUÉè—¥»+ΪÌ-…çäpÇpUaþÃX†×^•œ­Ò"”›gæ$àŠÀü‡‹™Y\;KTTï•¢s”mäàÊÀü‡K0³M[øbmûúâKæ—£›¾žcäl`Ö™hþÃU‹Ú0ŒÅÃ\Òð¦ñW¢+uܳ×éø¸nÌáºÄ\ç’4÷Þs€‘…0lÔÖÂMMM ÑþýûÕÛÛ«7ZÚýî»ïª³³Sëׯב#GØÍnv³{Z»Ož<©––­^½ZEEEìf÷¬Ý)ÿ¾mmÔǾúê«Z¾|¹¢£y³SÑß߯7ß|S›6m’t‰?LOOga`åñxFí7jq˜ìK—ÀX7ÜpèŸG-®eee—u0Ì;wîõó¨Åµ  à²€¹Àåýi£×ÞÞÙôuÜ\ÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada ›0 ççç_ÖÁ0L˜…ÀôM˜…‹ŠŠ.ë`˜ ÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0ÒÙYÚêIDATŒ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃÈÂFÀ0²0†‘…0Œ, €ada # `YÃ6oÞ<êg²0mß¾}ÔÏda # `ÑÖ­[GýLÀ"²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda # `3²0‘…0Œ, €ÍÈÂXDÀ0²06# `YÃÈÂØŒ, €Eda ›0 ggg_ÖÁ0Z\ƒƒƒ}5®XfáS§N]ÖÁ0…°Y‹ÈÂFÀfda," `Y›‘…°ˆ, €adalFÀ"²0†‘…°Y‹ÈÂFÀfda," `Y›‘…°ˆ, €adalFÀ"²0†‘…°Y‹ÈÂFÀfda," `Y›‘…°ˆ, €adalFÀ"²0†‘…°Y‹ÈÂFÀfda," `Y›‘…°ˆ, €adalFÀ"²0†‘…°Y‹ÈÂFÀfda," `Y›‘…°ˆ, €adalFÀ"²0†‘…°Y‹ÈÂFÀf£׈ˆÕÖÖúj,\qZ[[õÉO~rÔ~®‘?øûûëøñã ÐÉ“'ÕÙÙ©õë×ëÈ‘#sr÷É“'ÕÒÒ¢Õ«W«¨¨ˆÝìf7»g´{ÅŠªªªRCC»¯ÂÝ*,,TXXØ…õÔ±cÇ Þ-[Fÿ!ÌÌK/m…€u.ix•fü2ú‚ `¸ÝIEND®B`‚OTPClient-2.4.6/data/screenshots/hambmenu.png000066400000000000000000000445431414446074000211150ustar00rootroot00000000000000‰PNG  IHDR×!§ðXsBIT|dˆtEXtSoftwaregnome-screenshotï¿> IDATxœìÝw|ÕÚÀñßî¦lH! é½B€ $APŠ4APTPlˆ¢ èµ\½rÁ÷Ú+AT®åŠ"EPDÅ =)Ò{!$¤o¶¼„ 6Ù Ï—O>læÌœóÌìfž3gf€`xßsÏ=ýßyçÇÔjµ—R©T"„Bˆf  ƒ^£Ñ}òÉ'Ï›7ïW hPþ@hnnî¿ÜÝ݇iµZôz=z½Þ´Q !„ݘB¡@¡P T*133#;;û·ÀÀÀW€0<77÷9WW×a  SÇ+„B\q,,,ÈÍÍý-00ðÕÿýßÿÝ1vìØ»5ÂÔ !„W*N‡£££nnn¢¢ªªªP¡P¸É«Bqy z½>_QSSÓ ×ëÍLBñW P(Ì C³‰U¯×“™™Nqq:®«c3933sœ BN !þŠôz=évù~^­VãààH``p‹ûØ¢¢"ÜÜܺ4.cP(ff-ugggRSSMLL,––V]Z£ß~Ûʵ׎2IÛ55Õ=šLvv&þþ&‰A!:SVV&ex{{£Rum¦VÛ@II YY™üµö±ƒAÑâÖ,))¡OŸHêë5ÔÖÖue\ç)//3I»J¥’0’’%¹ !þ’JJŽãææÚå‰{]\\ÈÏÏÿ+&WZÜ¢õõu “_ïjªV:ƒÁ€VÛ`’öE7ÔPȶիذïG³J1s 8<š›ï¹X3àO^›ü(k+Z®¢×”%¼Óón_•yzŠ [Gœ]ü8æîš:7óóÛŒûïg¬‹O!=³€S*;œ=ƒ2jÓ&Fã¡ÜÊ£_dGï9¬{ÿœëyçÁWØÕï>~d0ÖFXíÚ’ ²Ëô8xáÚÊn£¾¾33ó¶gì$*• Í}l«_WLXMíï¾þ¢‰Š½,ùÇø&½+gÂ"B©ÍKeÏæC쌋cæsKxp€=!C†smMã"å©;I*¯þCîÙ8Í6ÈJ¸F\CoÇzÊ‹óÈÊNdݲDŠ^çÓQXœÜÁË<Ïú VN~„DDáW_Faæ¾þPIŸ Ñx\g])Ù…%9”P FI®k2ûë*¦¼±ž'®2B…Bü ´š\»Ãå9Ý!ñwWÇžÞà›týî|“—î釽¢qzÆæ×yòµ_Yýú' ]5Éÿ\ÌäÓK%½}3s×ÂÕ÷-fAŸsµe®PÒúbmœ¦/ÝÄc3_gÏ–­\E4Ul{ï Ö稈¼ãu^¾7 ‡3c>4ÇIü³‚5pá—~û1¼¶&†j«žØvÚöB´¥a°ÿt—ÄßZÙ>ÝT‚2dÏÜ{&±¨ ÷ë…¡`_n¯¿ä&”N½ wꫨjJ·ðÅ/å(ƒoã™YM+€… cÓ\E [ùçÄ)\ÿäªÎL«Ncí3óæ‰Œš2“ÙÏÅŸåú³ó?1bw?ÿÏ=r7LÇè›gñÏÏpŠ:6â/oáÜPA=)Û6qT̨Éc6d±}åK|~DEŸç3}€-`I¿)óylÁ|›ŽêrBâo@º……hCMq1•@ }ÏægpqÅ(*-‚ÛY«ŽŸ^ÇOM'Y‡3kþ$Ü€êãÇ©‚.=p€kXõg=ÎSå¹Ù}Q2û쩼¾{ q§Æ2ùÌUvá3y÷Í›pŠíÓ™ò~2‡W0÷æ¹îÏÿñe¢€¡7r“œs¢]äÎLB´¡‡‹ 6@Qq1ÐëâJK)<=.^ÔŠÆM}ÜÕXÛôÄ5°?C‡^E°CãÈMkwwì€ââãÍ·ÙNåYYG¨ß=ÂÐïš–SXDã3±.àêç‡ÉTœ:8]rÛBüÉ‘«mñó#@~ÿC³{Ó缿- K<;Péùš.â뇿ìø£³Ã »Ä¯ÁÖ6¶(€©Ïòèð¦GÞæ¸^ÜÇÝèt7´üí qéä¾~B´¥×õÜ1ÆŠÖñÒ›Û(8;šGOñ®÷y}}!ªÀéÜ9ĈAŽc¸sl/ yßñü’mäkš”é*É8˜A9€RÙøG\SCu3Õ˜ûûá–j îר³?½ñhç5«*•¨§ªZ{Y«$ÄßI§¹ÞrÇ]üoõ§—\ÇåÆ „qô`èÿ`Ò‘çX¿é?ÌØõ)áÁn(N¤q4ãû~<øÄ­øõ«ªƒïÿ““ŸcÝÿáö« öÂN{‚Üôtr+Cyô›w™æä…·»…e+ÃydæÕøßÈÝW¯á?q¯óÀ¿2*¢ŠŠ’Š‚xjñÜÛ‰›»;J øããgy'#ƒ!÷ ÃÙ˜«+®Ón¿«]ó}óßËÛïÿÈ‘«íá8„§>úˆgg\G?-YQ€'ƒ&>ÈÒ•op{˜¥ñÛtÌ??úˆçþîzòÆógVf>1L¹{½U!Lô¸V³ï›5ì;ya%=ûï¥,¾¹/æé[Y½êK6îÍÃÜLEU;¿·ÚžÃ££B±/OdݺmN;ŽinJ*Äå2â:æ<<Ÿòòò³Ó*Nbî#2dÄuFmKQUÕüŸØöíÛèÝ»OsEírëÌ»øúóU—\Grò¡ËŠÁ’“1lØ“Æ „!.î7ƒLCzz×\sm³eÆ~*Î÷Ì"#3“ÀÞ}ó  ó{‚Ô´4üýüøïª•FkKF !„ø[Xú֛̙÷0é™<üÇP(¤¥gàáîλKÞ0j[mœsmE·Ýyw³ÓÏÁžñÕg«Ú_©‘b¸PGcBqåŸsu°·çƒ¥ïžM°înn|°ôz9:uŒœsBñ·`0Àg§™››£@aôÁ³mt ·¿±ŸXÞï£'Ljvú‰'Ú]çåÆÐ’ŽÇ „¢»‘¶×‰“'yøÑÇÈÊÎÆßπ̬,æ=ú–¾õ&½Ö–Ñι¶”°º2‘IÒBÑ’ÇþùôÙÄúÁÒw˜3o>™YYüãɧøôãŒÖV§ß¡érëë\…¢{¸ÒϹ¦¤¦Ì»KÞÀζñ¡Œ,}‡‡}Œ”ÔT£¶%ÉU!ÄßBâî 4ÍÙÜbgkË—Ÿ­B¡PPWWg´¶ZM®z½þ’+þiÃ:JJŽ_r—ƒÝ—Š=û’™vFƒ­•#‡ÇÎÑå¢9kêôlùm+5§Ê±íaÎØ‘£0ïqñ£ÐÛ;Ÿ—ª»‘¶WsÉÓ`0P_éÏbnI§¹?^|ÉË+!º/¶Dß8…™9ÉiùlÚº‰;n¹›óïà«býÏ?2$Ì Ÿà1JÍgãO¸yÊ t—4Ÿ¢+´ñ°tƒIºK BŸžÀ ff€ÞAä—mÃysÁw*ëìGIžêòÒKšOÑ5ÚH®¦ýé.1ÑÙŠNœÄÁÊ…™ùÓOàëäÔäh¶g'_Nœ,¾¤ù„]£KqºÃùÎîƒIEÜî?>p ”ÔÖÕbiiqÞ4 KKêêë.i>!Dׇ¥ ab;“ãh^CpïÑ}•´R[QY¯9oZƒFƒ•Úñ’æBt 9çÚŽ„è,i9¥dÛÍÈkÇ6ÛGãÖ«Ù%%M¾›SRšS/·KšOÑ5ZM®z½Á¤?Ý%!:ÉŠz~ûmS®ÂüÜó`µZ8šzàhg‰…­'™iÉNËÆÕÚ +;ÇvÏ'„èzmt ›þ|gwˆAãS±ù×_PhõlüåÓÓ´L3Š*½5Ûwn'ÄË¥•5“FaËo[ù#ñ0¶=Ì7f: ¼ª¾]ó !º^‹KßµkÎÎΨTª®Žé¬¼¼\¼¼¼MÖ¾N§ãĉRbb†˜,!„è,»vý§§'*•ií­Ói)(( 6öêfËý°ô®Ôb·°››ùTWטô2Sµ][[G^^..®]õ^!D—ruu§¤¤FÓöÌF¦Õ6P\\Œ»»G—·ÝZüºâããGii ‡í§¡á º†··;vün’¶---ñ÷Äß?Ð$í !DgóóóoSkÌû궇¹¹9Îήøúúwi»]¥Åna!„B\šVG !„¢ã$¹ !„Ff&7JB!ŒËL«Õ¶=—B!ÚÍìäɦŽA!„øK1Û¸ñ{SÇ „Bü¥˜‡š:!„W @AUU¥©CévÌÆ›hê8:¬¸¸W×+ó¶XÝ•lӖɶ1Ù– û÷'R^^Ž^¯ÇÇÇ—ˆˆHS‡ÔmlÞ¼±­‡¥ !„ç;“XƒƒC1t¤¤¤H‚mB®sBÑnM«™™ ss BBB(..æðღ¯Ûä*„¢].L¬gH‚½˜$W!„mj)±ž! ö|’\…B´ª­Äz†$ØsZÐTÄŽ/äH+O!² Ëí±Ý{ÔŸ>ÿÝ’J}pn¸%W…©#jmuåuÔvŽØ˜›:€~[õ+éöý™vczš:œîHWIÖýË/¥´¼¥µŽÎ^DDõÁËZI{ÿ¦Æ«÷ðmRÙé) TVXÛØãAÿÞžØ\ô•¸–ÛÿÇ®"sBÇÜÆ0Ϧ3èÉÙþ[Ò dôm\ãÕÊ÷i][>‹#ÇyÓ'F`}IártÒzh Ù½ñò\c™4Ø‹æ–Éßɧ[R°î7‰›8B3Ët¿¿É®ÑÞÄzÆ™ûwäÔÊ'TM/o?üýÜmU€ ;·sÓ|Õ]è¥Ñ“—‘M=@M&éEWÎ}”O&ÿÂ÷ëäÏSG"Ú¥.Ÿ]Ö³uE5Jì]œ°Ò•“ŸšÈßod_¡†ŽþMÙ¸øáï뉋­ …Ý·•M{ ¹øéÊVøû»¢@CNvçÊ“›§s/üÜ»{GU'­‡¶†ŠÊjª*ªi÷Í^›Yæïø7ÙÑÄz†Á¶zäjOØÐ„þ­p÷×üp|®A¬K—Ävùtù¤gk0sqÁîøq22 ‰u÷¾padZòvr¸Lkÿëå†úôô²ÔlÙ‘ÉŸ;’ð™Ó®¿©²ý Ü"G0§qš¡&•Ÿ¾ÛA^zÇcÝñ¼ ‚¾þ¸í.¢0'‡âÁ¸é¡)Í#·Ì|ñlÿ¾Ñd:e=ÔŒ¹Õ™ËfŠ ½ƒÁ€^¯C§Ó¹#ovk\F§Cèôzôz=zîòÖóJpðàŸ—”Xϸð6,¬·±Cì4 …âìÿg^wÔe^çZDZ-ß°=_u~7Ž&•Í_ì ßñ*n`Í®Ïv¢ ‹À¶<‹‚ÕhÕv¸bX”{ãN¨á$GöíãHn)•z+W{z£499À50[Š-E)Çи{âæAyV ÙûFg=±!:oÝÄ®kü#úâßÏÑ£ñü¤±ä–ÑÁX]rlZr2rÑ*=ðórÀµÚ‰½ñ9¤çëðò>óa©'#n#¿fÕÓÃ5ˆÞ=QiÊ)·´À¬Õ²ZŽýöÛó 8ø…ÓϾŽÜ£©ìù±”ú&3°G{â3p"3½«'a®”¦¥´?=§K¤>‰ƒ…Z\ÃØ°qî^GÜÇ÷óÓŽcÔX»ÑÏ+]5¥%JÌ,Û(kå|c£ªv|ôä$îÂÞË/·“·°4]b(/£Ì=½½°»¨Ð /?/ÌSR(+«;TµA§¡¦ªŠò‚¤VNN87ûAPãçïÎβ³KˆuqªÉÍ-•~ž§ÿÔ˜[Zã„‹žÒ”$ÇÿŠÂþf†{tp½Ûõ^uT¬‡¡”½?þÊSJlÝý‰pPPW¯ÁÊÊéýÄÅ5ÎfîëIyìŽËsO|/¬¨ˆã*7|A›ö;qiMÖÂÇ“Ž“wü’¶‚)ÙÚÚ¡Õj/;±žÑ4Á–——_·JT*UØØXãî»æææ¨Tª%ØË¾C“™w(A=ÒIÎÎ wˆ7¾ªr² Ð+Üh2$¢W$×9=HÂOÅW‘—žE]ÏSì/Òb>„ë®rEA0êò¯Ù‘—Nv}0aÍõã´GC.é¹Z”î>x[€¥Ÿ/½âÈÊÈc¨·oã·ß“ÉÄgÕ¡r‹aÒ¸ðó¿ažLj¹¬4¤üÌ<¯fµÁ¨¾îfüoóÈ&*¶1:÷cüØÞXUV'ùjo Å%õD÷ÿè 8ú„Ñ»Ã;½Î§)/§°÷À þÎç}Z+kSñáÖ?g*sÈ £Ãšíæëj UÕÔ–-¤xkk¬ªšjÚŸ\ ¤ý²Š´¦“ÌÚâ‘•¯î» (ÈÎáÄ gzÕå‘{TÞ¾xŸ€cGø5×]&Ä¶ŠŒÍG(*ª€Ž~ÎÚz¯.ñÍéìõ0ãÈ)x ¤·—–ÒãÅxxxáààpÉ]€¢uææDDô1uí¦Ó驨('33êê*‚°´´ìP‚½üÛ*\u 9©1™ùzå“•¯C鈿Ðܹ G'œ”PUUÍɲrjŽlfÅ‘¦3UQY—º÷Ôäd§UM»âŠZTГI®Ö?3h8y’S€›¯ßE;¬VËÊʨܽ½Î1©Ü¼ð0;BêÉ2*hסëylìí1£„úúz¸„廚…‡/îæùÚÄ9®øGá­ªõ²¶Ôµõy°?ý«RÕmºÈÍ­­±ªª« ¹ãµšj;Û‹k[cã⇋–X;ºãë룺µ1ˆ¾xì¢ ?›ì²«°=™G±A‰—¯7ç·ê¨ÈH"þXÅ'«¨oТôšúÅíx¯.õ›O'®‡Á` ¶¢’:­– 'sJçÞ•ª[õ S©”8::Ò³§=GŽÂÚÚww³ÝÅíI°F¹·°CH(®ûw““‘C-¹äéTøú¶ü·¥´ÀÒ P)±´´D8„_Ë`¿¦K¨°éؾ¨ YùƒÊòH+kZ–Kzn~þMÇÒ·6Џ•²ó6°¢ñW¥¥C«5_PÙÙe®6!Œ›bË¡¤?9’ULJBé錛4·ÖÊÚØ6òyèdöö8ÅY™¿Ê—óöÓzŠróÑ`†££m*=@SûXâïçÁÎü|²²OâP^ˆ^ᆟ÷¹‹Oôy»Yÿ{*¸„ãŠmC.;vg4?ŠÖdï•‘×£™õÒêt˜×áîå#‰U´H¥RâååCAA>½z9aff†RپϋqnÜß#pïx¶å¥±S_‚ÖÜ› Ÿf¯&kTVL±Tnöô´WbTÖèèåæÖü5hUŸMz¥×ÕÜ1:ø\u)üðÕNr2rhðÄÜÑ;r)É̤2<Û&¹²Õ2lÈ£$/Ÿú°@,}I… `æà€…¡ñ‹Ey9倭§ïæ( @‡¦¡¹Ñ+݃ÒÚ¾CÝé;¸š´íÙ–™BZñ ÜMò^iAõXKàd9{ 1))NÁkÐ4^îcq™ïUwY& J[[,´Zêj*éÙ3ølYÅ©S¨--I>r”z†¨~}»ìõÀQ$î?€^¯3éëøÄ$b£±{ï¾.}&¥RÅ€þ}Möºªª{ûÆ«ùmmíÈÊÊ@£Ñt¨kØHOÅ1Ç?,€]9)dæ‚eP >Ö|"™ßw5àÙCCAÊQʱ&¢/f Dù$³-{'~=A€³Šú «:"œŽ|×?£6+“½O_ŸóÿàÕ>ø»í¢0/“lM AŽÄ¦ðsz<ë7—æmYÃ)Ê,ƒÑZYo¢<²=w›~?E€½†¼£G©T8pU?_”Êj\œ »ôq¿épÑ—_AG6·­- *ÉIøÝ'G"£|Mpa󴹉lË5àdg…J[E~i=`ZÝzJçÖ·C˜Ñ?ÏŸC-ùc©ÛX“Û§^¶(jNRZVƒNíÆ «ûàЧó,}ðP’—WD! <|}ÎìeeÝ%d%íÄú„5Õy©TBcw«Ò; "}IÎÄF™ð½2æzô=¿j½c0Á Ô çí$322  "ª¿³ÓºòuôÀ&=èoÿºªªš´ŒLè4½êõz´Z-z½žö2ÚWi•g!¶–øz^\±…%ÊòlL£Â¾×#ÆU¨ >®(O¦óçþƒË?…R©læbùö¨#3£ƒÂ Ÿ ;¦Õøû¹¢Ð瓞]Xà;ôÆ]@Ïú'%r µˆÊêz4­–Yzí® wÁpüI‡r¨³ dð„ë‰rP6ô¾:†€^–T契]n†W¸_‡îj¤Èà'Ôu…;–Åñ“Õm´íBuÚ:j Ó9˜ϾiœT¹:x8ý[/k{ÛûóÐE¬¼6é®ôÇÍÆ@ùñãTb‹gè &L¹ž¾N]u†Ø_ÿ3ÎøùœØ6lCƒœQ•¥óç¡4ÊmÝq=û ´‘ƒ#p·i ÿp2ùµ¦|¯Œ¹ç–3  Ö„~Q‹NNÎØØt—¯¯ÂTll¬qêuñÀCýék¡ íWJ·pêêyL|9Žö[ý{[±ê³/Óº……âÊvÅt ë´h´WÈÍfº¯×|ÛákŒna#]ç*„W¶æº…ÏÏ+Ó¾¡ÇÍÞäü¶”“JÜûNdî!ýî+~ŒO§TáFìŒGx|œæ$ñú´©EmÂn’‹u8‡\ÍÏb¸Ûé]oCÛ?_Η;’_Õ÷hn{à.FxZ4¶wë¯ô_Ü›¤åëØ“ëNhÐ!öÖK?ùmQ±ùÙQ¼e®|_¯ù€YwßÙ®ùÑ-lCã¯DWjÜÝ™lӖɶ1SmKNG}}=•·})Ž.ƒ£%×q÷S31;ÄÒ½Ácÿ cÚœûxù^*·-áÑVðóàçoJ(<åÍŒ¹“x¬W{>}W[áùÁ)êÙ·ìi^MÌ“‹0С‚½Ÿ¿ÆkO.ÃzÅ©†,}_̓sžã~ÏX;Ø‘óéææNgÓÂáÒõØI°Ù9¹ç]ŠPZZBCù»4µÅ ë÷„ g®s57· °0ÿ¼²öu «é=âzù edÿ÷‰«ŸÈ}ÃQÎ#‡Ñ{ù§dåsú!–„ÏÐðÆ¥Ç?43>á§ÃwäÇš­fÜðê} óQv `ö<ÃÚ¸{4ÀšÑ³ç3þÊy L·ÖÞÛ\·°““s»¯s9ç*„@{º…/¤¤W/{ :ý¹{.[;ÒËR‹¶¥'XûèZA~A äç­ ¥Oh“ݰ*”È0ÈË/<ÛF;öã¢,,Úîòí>£……â ×5£…õèõ§¨e€³OÃ:KÑøO!»æÎ0sÆtfθ­Íùd´°BI—Œ®H#¥Ä¿àቷ.…äô&#õ©$§€ŸO[O|×Nc›Ä IDATË¥8ÔÞÄ Ýé&Bq…ëx·p»j%51‰‚-šŠt6½ÿ?’ƒo`b0`?‚©×Ö²þ½Uì)¬ASSÄ®•²Y9–iÃz´X£½½=dãpU 'K+;!濞Ž$V0âha!„ø»k×háSBÁV^œû:¹5VxõÅ ‹&Ñ8„TÍày/1årV>=›" ^½‡²ðåéô1o¹FçÁc¹æ‡Y8k/n7±|Ñ#Çü×2sÆmJ¬ÐüháŽ2ÞSq„¢›kí©8> åò%ñúͯañï/˜ß¯í¹E÷qá’LúT!„¸’uN·°¸©T—ß©+ÉU!¸rî-,:_~A~Û3µA’«BpÝ[Xt:OÏË®C4 !P]]kä£x|ÍF®St33%z½¥òÒ?åÈU!€òŠ ªªªM†0±ªêj ‹.+±‚¹ !ÁA¨Õ–ìOD¯×1p@‰û´ûulô vïÝ`²×DŸ˜„R©b@ÿ¾&yÝ/2‚¤?`iaAïð0“¼âÐádzXYàߡס!Áø_öçI.ÅBüm´v)Ž-‘Kq„Bˆn@’«Bad’\…B#“ä*„B™$W!„ÂÈ$¹ !„F&ÉU!„02¹‰„B4«œµOÞÅ²ä §»pë[Ë™dŠ˜Ä•B’«B´"øö%¼4ѹÉ–=LKêêy<šw 럺FºÛiŪϘu÷]Þ®$W!„h…™Ú;[[S‡ÑH§E£5˜:Š+Ê×k¾èò+ÉU!:¬ä• x<>–·ß¹“`3 r7/Ìy›Ú{–òü¨^Ÿö!µã£¨MØMr±竹ãáY w;½Ûm(bûçËùrçQò«zàÍmÜÅO žWný•þ‹{“´|{rÝ :ÄþÃ:` ã'¿"ê!Ö>; µ ·Â• V’«B´BW_Kuu͹ JszX™Óûö‡·cKÖ\ÃÒÛ\‰_ñ{ýïâãQ½€0”PxÊ›s'ñX¯*ö|ú¯,¶Âóƒ; RÔ³oÙÓ¼š:˜'-` C{?מ\†õŠ R ;Yú¾šç<Çýž=°v°#çÓ9ÌÍΦ…Ã¥[¸ƒº:ÁJrBˆV¤¬žÏ”ÕM&ßÉçKnÂÕ²÷>x-³^x/ìƒøé7î{ïzε$lÄx††7þ6þ¡éì˜ñ ?¾“ Ÿ8Öl5ã†Wïc˜°cøs8°çÖÆÝË 1ÖŒž=Ÿñ}ºpeÿâº2ÁJrBˆV„ÏZÎÛS\š-³x7scçòÜÒ,"î{›‰®Š–+²ö'е‚´‚På­ erh“ãOU(‘a°/¿ðô%m<|E\ ‹.iGz„â’™cmݸ³V([I¬èÑëA¡ Î_BÑøO!»åÎ2sÆtfθ­KÚ’wQ!.‘æÈ—¼ó›3î@Ögï³¹¤•™+ÒH)qÆß¯xxâ­K!9½ÉÈ_}*É)àçãÑz£=z£Dÿ÷Ò•‰$¹ !D«Î h:÷S‹Fh3ùbé&¬o}»n»ŸYa)|üþ¯œ<»d=©‰IÔhÑT¤³éýÿ‘|ƒûL½¶–õï­bOa šš"v­üÍʱLÖòE´öööuŒÃU5œ,­DÛù«ÿ—ÐÕ‰䜫B´ê¢M¸pë[1:é=¾5ÜÀ›S}QãçÞÁÏsWòþö«X8 @ [yqîëäÖXáÕw/,š„jÏ{‰ù+—³òéÙilðê=”…/O§y˱8Ë5?|ÈÂY{q‹¸‰E‹&àÝy«þ—0sÆm]žX›6m0Œ7±ËBˆ®¦Ó騫«£¬¬Œƒ÷3`ÀÀNj)‰×o~ ‹Áü~Ô„è2‰‰ñDFöÇÁÁµZª‘f›7o”na!„ÂØ$¹ !„F&ÉU!„02Ð$„FÅãk¾0u„äÈU!„02I®B!„‘IrB!ŒL’«Bad’\…B#“ä*„B™$W!„ÂÈ$¹ !„F&ÉU!„02I®B!„‘Éí…¢Uudüü%_þ~£©yTY:âáß—Ñ·ÞÁ½ÓåÑrÝÍñï™wïƬ~‰Iö¦ C’«B´¨„ßß|–7º3í®™L›ë‰uM1ÇvpB§6up¢“ä*„-¨ø}oíà©wÿÁàžŠÓS]ð Œ4i\¢û“ä*„ÍÊaí—{ ¸å£&‰µ9 ¤oYÆÓË÷q´°K¯ÜùÈÆû[åìZ±„UdRXQÚ)ˆa3ç1o˜; âyeÚ7XßDqÜ^’óN¡rïÏm ejðé£âªd¾xçc~ø³…[ á!6äýrЉŸ¾À[ :•ï>\ÁÆ„,ÊÌœ‰q;όŵÙ={¯OûÚñQÔ&ì&¹X‡sÈÕÜñð,†»™µ«–¼mŸðî×p´¸ Â&<ijSCPµXæÅÏ‹ïà›à7Xq‡ÿéMµ›n{‰¢òîMnÓJÖóð½pÝÊW™b_ÄöÏ—óåΣäWõÀ=$šÛ¸‹ž@<¯Üú+ý÷&iù:öäú3õ¿¸ÖÁ÷ïÄúøLÊ­¼Ðφr#}.‡ hBˆæÔgžïÁ€~NmÌh@«öç†y/²jÅ+ÜÒ3‘¥ÿrzß¿!7òÏ×>à»o>åÍ©Vü¶dqµ§Õev"€æ=ÏÊ•¯s·û>\¶™b*ùùÍÿcMå þñÆR–,˜J´m '4gÚ­àÇWÿÍ÷ÚÑ<óÁg|ñ꽸ǿÁóëò[ µ„ÂSÞŒŸû"+Þû7Sìxeñ¤Úˆµüg–¼± ‡© ùèóÕ¬zi7Fº ¢µ²ÄÄD·/ÂÓÍë%Р$-1‰SgÖ"!”€hbëÙ·ìi^Mreú¢e|µ|ÓÝòú“ËØWwzæ†,}?ƒ¾³žcÅòy Q×÷ÎB>ÉeÖ‹ïñÑî$¶4´÷=îD’\…¢9Ç‹)28áÜVnÅ‚ÐkÆ2$Ìžö~\?,]V¹(p"À©f*5^#†¦É!»øÌ²j‚‡Œ$:Ø•ž=½5<Uv69eÛټϑÉ÷Oç*/Gœ¢=º/½Î,Zü+C˜1w$¶X¹Fqë˜@ŽíK¢¢ÅX- 1ž¡áîôr füCÓ‰*ÚÊO‡Ûˆµª’SG#qµ¶ÀÚ%Œ«‚Oj¥Ì!z¡ ì;Ù8kò¾Ü®Cpò~’êêˆ?ŒoL4î§âX³ÕŒæÞÇ0;¬l½þÀ®7ÛÆÚ¸ÊÓñ[3zö|Æ÷qÃÑÁËŠílØaÃä¹÷pµ¿N^}5¦?Îí|‹;“t !Dsœœqf'Nží_̺—#jmÚÓ¿WÝÄ'ßmçÏ”|Êjj©Æž@móËZ8:b§-k<ò*, _ÀM~-4TTL¡áïÌœÆÒÓ“ ºp¤èÙ®`ý t­ ­ úôh9VßÜ»™wYÀ‘1˜zã(ú8žNž­”9Eëÿ {ª˜4º”½ñæD?5 UòãÄÔ1¼ÿöîwdðtÈÿ™le(“C›ó©B‰ ƒ}ùgŽ}•¨TMâ/È#— &´ge»–$W!„hŽ•n<\ÎtÏK¼¦£x# Ÿù÷ûä™»=ptHæíiŸ·yƒ½h56ª«yüÛ'ÒÚ)áVéÑëA¡h#V… c~@äÞM|³~ÏÜ¿–èó¯Ñ(Z+ÃØh¾LئO1ûêòp€'ªvü_â1ôæ $ØÄð|  ¸`Uÿ-t²êôè  -m#’na!„hVSníËá¯V“X}i5ÔLâˆ×H/þNô´2kðôÆG‘AJ†¡ùrW¼H%9­…òö¨H#¥Ä¿íˆÕÏè)<òüû¬¸Ç…Ÿnàp;Êb¢±OJà×Ý ”H82p ‰Iü¸/UL4¡žxëRHNo²>úT’SÀÏÇ£ùø==ñ¦•mdB’\…¢½FÝϼüß#¯ò¿‡È<~’âœ#lÿv9ßÒ´¹¼¥}OÔÙñüšVAmy6ÛW|GB{ï9œ)#jÙøá—$¯E«)çXÂQNœ)·Æ”‘6,]ÁŽÜJ´Õ§îbÛ¡–ϸB=©‰IÔhÑT¤³éýÿ‘|ƒÛˆU—KüΊ«µ4T‘Yp -¶m• "Æ2Uk38¨ @>A'泸bcz7&qûL½¶–õï­bOa šš"v­üÍʱLÖ£ùÕq¸† 1M¶Q©IÇÎm#’na!„h‰ÂÑO½…ïÿ嫳.#Ÿ*s{<0&¼¶ÍÅUoç© oòþ3÷³ÆÚ›«ÆÄãüS;W3dÞ Ìþ`K]ÏIU/zG84Ùi[0h΋,XõŸ-šÃË• l<‰¸Ñá}z¶p„¬„‚­¼8÷urk¬ðê;ŠM  µX+ ØûÃyki1åõf8úà¡G¦àÛV€"ŒÁƒ ¬ÿ%’˜~æÓÌ"‰ŽªfkB,±‘gN¢ª<ï%æ¯\ÎʧgS¤±Á«÷P¾<>æ-m#F.XH΋o°xÖ”îD ÃMmú‹q›6m0Œ7ÑÔq!D§ÓétÔÕÕQVVÆÁƒû0` ©Cꘂ5̹?“¾|žñ¶mÏ~¾¤¿ô­jëPX©;åˆ111žÈÈþ888 V«Q7ªêb›7o”#W!„¸bTTPn©é~Ì­º×í(圫BtW9ðͯ‡É¯Ô¢¯-àçu;¨Š"¼›Œ“#W!„è¦êuõÆ}¿?-àD½÷ˆ‘,š{mû®a&%ÉU!º)Kÿ‘Ìv¤‘j‹âñ5_©.ÑéB!ŒL’«Bad’\…B#“ä*„B™$W!„ÂÈ$¹ !„F&ÉU!„02I®B!„‘IrB!ŒL’«BadrûC!„hV9kŸ¼‹eÉNwáÖ·–3+¨™EŽϼ{÷0fõKLêyœÝßíF}í$ú;vA¸¢[‘ä*„­¾} /Mtn2Eev,X—I܆° OG3RWÏãѼ[XÿÔ5Òeø7 ÉU!Za¦¶ÁζÃO&«ž\sîwÖ`¼ÀD·&_ „âRÕfðýOqïô[™zïã<ÿå~ÊÏ&ñúÍ÷²üX?>;•‡×ž%ŒŸ<•qÏn¥î¢ÊâyåÖWù)y#/?:›)7¿Èou@CÛW>ÇC÷ÝÎäÛf3gÑr¶åk€~\<•Y«3ÏUѰ›nšÌÃß›V²ž‡ox’µ%·ÄÅ$¹ !D+tõµTWלû©m ñø³†¸wòI~(³^|þs'±½ á¢ÔŒ}ö;Þ½ÙbeÓºïØüì(ÔÍ5Ö°“¥ïgÐwÖs¬X>!êzö-{šW“\™¾h_-_Ät·ƒ¼þä2öÕõ &&‚¼} ž^\(„%i‰Iœ:=­"!”€hb›kPtI®BÑŠ”Õó™rëôs?ÿZÏq€ŠílØaÃä¹÷pµ¿N^}5¦?——ì={>ãû¸áè`‡å©8Öl5ㆹ÷1ÌÇ+[o†?0‡ëͶ±6®‡èA„f$°ïdãÒÉûp»~ ÁÉûIª¨#>þ0¾1Ѹ_æv#ç\…¢á³–óö—‹ òÈ%ˆÉÆlM‰JÕä×ü²•¡Lmr¤ %2 öå˜hbý?aoB“F—²7Þœè§&¡J~œøƒ:†÷?ÀÞýŽ žîcÌ E;È‘«B\ Á€¡3Ç((Λ¨hü§PnÄF{ðgÂ~4… ì«Ht€'ÑíHH<†þp 61 ìÄE³$¹ !Ä¥ðôÄ› R2:] zôiÃÃo] ÉéMÚЧ’œ~>ÄDcŸ”À¯»(8p dà“øq_ª˜hB;Ò¦0 I®BÑŠ‹4U×¢Ñ×0!¦‚~IâñZ´š R“Žq¢…zìíí!뇫j8YZ‰¶=Û`êµµ¬o{ kÐÔ±kå‡lVŽeÚ°ÓÛ "Æ2Uk38¨ @>A'泸bcz_pä+º‚œsBˆV¤¬žÏ”ÕM§œ¹C“ #,$çÅ7X=›" ^½‡²ðåéô1?=‹"ŒÁƒ ¬ÿ%’˜~§'šEUÍÖ„Xb#U-Ö.:bÓ¦ †qã&š:!„èt:Žºº:ÊÊÊ8xp? 4J½ µu(¬Ôr´ò•˜OddP«Õ¨T­aÙ¼y£|„âr™[5{Õªø“s®B!„‘IrB!ŒL’«Bad’\…B#“ä*„B™$W!„ÂÈ$¹ !„F&ÉU!„02I®B!„‘IrB!ŒL’«Bad’\…B#“ä*„B™<G!ZR—ÍÖÕŸóÝŽcä–kP;8ã>˜›ï¸ÁîF|Nªá8»¿ÛúÚIôw4^µÂtäÈU!šUÃÎ÷ñö~;&=ò</‡×ž˜É°žêÌÛŸXSWÏcâËqè[›V—I܆Ø•«5æ ’#W!„hŽá;÷èóÌÃŒí§hœæäŠ_xLÇêÑiÑh ­O³ŠáÉU¬Wtk’\…¢9 +¬Ô5ääÄЯŠ–æ«Nå»W°1!‹23g"FÜÎÃ3cq5«ãÇggðV‚XÂøÉo£ˆšÍ\–³ô¼i±öÙ^,½ù]z¾°’Ù¡ñ¼2í¬o ¢8n/Éy§P¹÷ç¶25øôCÙ«’ùâùáÏ"n„‡Ø÷Ë)&~úlµämû„w¿þƒ£ÅµX8x6á!ž‚;²E$¹ !D³B™2½ðOæÞÄŒ)£ˆrµ¼`ž ~|õß|o=›Å ãæ0+ÿó"Ï۽Ż7y2öÙïütss§³iáðÓçáÆzÑ´¤ó«Õevb 3æMâq ;–>ÃÛË6sõ›Sp¥’Ÿßü?ÖÔÞÈ3o\&›ý|ÏŸšÓË–ÿÌ’7vá<! ñŦ:ƒ£.’X»˜œsBˆf)𷈕¯MÇ'ãþ5{6 –næHy“³§Å¿²!1„sGhk•k·Ž 䨾$*.«m5ÁCFìJÏžÞŒ‰*;›€²ílÞçÈäû§s•—#ÎQŒÝ—^g­ªä”Á‘ÀÈ@\­-°v ãª`ûËŠFtœ¹ !D‹ô Íïç–?·²æë5<ö@÷½öS}Ì ¨˜BÃÞ™9¥§—0èÀ=’r §‘¢°ptÄN[F@aùŠnòkafÏÜ»™wYÀ‘1˜zã(ú8Ê®¾«ÉBˆ6YàÚoÝÀáKiK\2I®Bќڽ¼÷ïwøz[ÇòJ9y<›øoóÆ \;2 K›aL©aÃÒìÈ­¤A[Mqê.¶:wÆÕÞÞ²Žq¸ª†“¥•h[˜Ön=‡3eD-?ü’Äãµh5åK8ʉ3åº\âw¦P\­¥¡²ˆÌ‚Sèìl±5Öví"ÝÂBÑ,úF*Ù¼nŠŽS¡·ÆÙ·£žz‘iÑgΦZ0h΋,XõŸ-šÃË• l<‰¸Ñá}z¢œåš>dᬽ¸EÜÄ¢Eð¾hšGâR3dÞ Ìþ`K]ÏIU/zG8œÛ™W°÷‡ÿòÖÒbÊëÍpôÀCLÁרÛF´E±iÓøqM‡Bt:NG]]eee<¸Ÿš:$ã(XÜû÷3éËç/‡¨F—˜OddP«Õ¨T­_Ø´yóFéBˆ+^Eåæ8Ú˜:q†$W!„¸ÒäüÁ7¿&¿R‹¾¶€Ÿ×í 6*ŠpÜmÈ9W!„¸ÂÔëê)Œû„ZÀ‰z5î#Y4÷Z£]W+.Ÿ$W!„¸ÂXúdþ³#M†h…t !„F&ÉU!„02I®B!„‘IrB!ŒL’«Bad’\…B#“ä*„B™$W!„ÂÈ$¹ !„F&ÉU!„02I®BѬrÖ>9™k7™¦!å‹Ç¸áÞ·Ù{êrëç•©3yïÐåÖsŽϼ‰O³¾¼£ &ñúÍ3xçÏÎê¯A’«B´SÙ®÷xö;·/|h;SGóדºz_ŽCßMëë¹q¿B´ƒ6û{þïÍý„Ï“Û,LÎ_“N‹Fkè¾õu€$W!„hKeï>÷_jÇÿ‡'®éu~Yu*ß}¸‚ Y”™91âvž‹«Y-¿<'Ë{-âË#9ó¨ÕŠ3ý÷þû’  !õÇ÷yjÙ>Ž×ã2”;ÜË0UãÌ Elÿ|9_îŽVcé5;YÀx‹vÄ~a|î„bÿa°„ñ“ßFõkŸ…ZSȶϖóõ®cÔÚâ|ÓæÍf˜ù&þqÇ/ Yù7»46Y÷ËóLúÆŸåÜÄ‘ggðVÂ…õ ´Õu2I®BÑ]!ë_yÍÅãû¸áè`‡eÅv6ì°aòÜ{¸Úß '¯¾ŒÓç–V¼ª’SG#qµ¶ÀÚ%Œ«‚í›Ì`Aè5cæFO{?®Ž.+‡\Ú{3ñ5CÅï¬ùµS¾›!>v¨­œ†›¢¹™Û¡Íu2I®BÑŠS5ÎÜõÌãüsÎdzüº’¯Òuç ‹Š)4à™Ó˜8µñ箕G¡¼¢±»Õj#¢ëøãÀŠ;8Ø{C[ÚŸÛúèt‚¼‚:ÈÏ![JŸÐ&»iU(‘a—_@ÕÑM¼ûâÓÜw÷Ütç2ÑÒ =3³UÓC²‚¤åÔJY)'\ðóUƒ‡'Þº’Ó›Ô­O%9ü|<¨9˜Ä¯‘Üu}_ü=œèieF«9ÈÓo2HÉèH*±Ä3z <ÿ>+îqaǧ8ÜžÅÚˆ½Uý¹KgÜ=ðÔf‘‘ßÌ|ff˜q‚ÒÿßÞýÅÖY×qÿžÓÓ³¶tc%%&Ç"Ù a ƒ Âz *”]jDàF$&.AÂBŒ£"bÀ¡" üØaºÂÖµgõ†.p±­…O·I_¯ä\öw~Osò¼ûûç鳟¹|x¼ªúØÇ4Iâ 0QG|¹¾sñ`=¾â·õÊhUõ/©eg歹·ÜU]¿½FFß«M¯=Y«_üÐÕ6íEuÖâáZý‹{êÅùKêôÜ»³^{öïµqÇh oùg­¼í÷µö„ ë‚ÏUÕì³ê¢/í¨n½»þ¶áýÚõþÆzrŵªyn]²¤¯fÌ>¼zÖ=SýckíØ²®þr×}õì¾æ>pf¿xk=xÇ=µóéÏ­ÝIDATæ­5ºkk½öÜÚÚk›:ëë™'^­MïÖÈöõï7·UgÖÌš9‘ßÓ~æ¾×›=»êõµõÒ߯¡w¶×èÀÒúÚß©ûo¿¿^®Îð–Z÷ÜÓµv[UõWó7×Ó«Ÿ­MÛ6×ëϯ®ûž\¿ïñ>É1M’«…&¬Qó.º¬Î}äúº}åyuó²£ë”+n¨«ïþeýêÚ+êÆíš9xLÍÿúQµôÄÃ?XIv×)K×ðã®ß8µ>ú¿'æTßÐuÝwVvôÕq_8§nøñWë3UUÕS§]õÓúþŠ;kÅ¿Uwõ×g?F]sã¥ubwUüÍúÁù7Õm?úvÝ{رµè+§Öâ#ÙÇÜûë쫯©7nøy]wÙ½Õ8ªæŸvBÍíÙËÍ8[߬§úMÝ|˦Ú2ܪ9óÖ•Ë—}°Ý½?û™û^yÚ¹uæCwÔ5—=Usç_\×^{~-]þ“Ú~çuÓòßÕÛÃ=5xì µìÊEuü¬ãëÒå—Ôº[oªËíªÁy jé¢ãë˜ÿìc¼«?Á1MNãá‡WŽwÞS04À¡¥ÓéÔÎ;kóæÍõ Ï×Â…'˜7~ûúÞåkê‚___çLÅ2i’Fvì¬FoÕÕ­YóL-XpR TOOOuíçJ¬U«´- 0ÕÞzâ‰ú×IgÔé‡@X«ªº…uʉ+À”ÚX>öj-\²¸úöT8`Ä`*­ûSýñõ“êÌS‘e+„€©tÜ¥µâ{hV®&®À´Óh4ªÑhT§s0žôÉÿ“±±±=Ÿ—ÉW`Ú?I6›ÍêïŸYÛ¶íýkPUµ}û¶êïŸYÍfsR‘W`Zi6›Õjµjpp°6lx³FFvì)qˆêtv×o¬«ÁÁ#«ÕjU³9ñdŠ+0m4êêêªv»]}}ý5kÖìZ»ö•²EÌÎ_~±æÌ9¢úú«v»]]]]^¹ºZ˜VšÍæqí«9ÕÓÓSï¾ûN­_¿®:ÎþàS¯Ù쪙3ûkîÜ£«··¯úúúªÝnOjå*®À´1þ}kwwwõööÖØØXµZ­jµºkdd¤:NMø™l|ïnŒFÆ_ÝÝÝ{¾wq¦•ñ“çŒ3ö¬b{{{ktt´vïÞ-®ÓÜø`­V«ÚívµÛíêîîžÔ–p•¸ÓÐx`FµZ­š1c†°²Çx`»ººªÙlNjÅ:N\ii<°ã'ѪWªªö„ôãÜß:N\i퓜@aoÜŠaâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ aâ a­ªªU«<Øó€Oÿ V(˜K™{IEND®B`‚OTPClient-2.4.6/data/screenshots/main.png000066400000000000000000000351671414446074000202470ustar00rootroot00000000000000‰PNG  IHDR×!§ðXsBIT|dˆtEXtSoftwaregnome-screenshotï¿> IDATxœíÝw|Uõáÿñ÷ÙƒìEÈ {"KE‹RPpj«µ¶µ­VU;míðû­£_µ¶úk­£Ö(8PQ–€ì•= {Ï›äžß q>1!¼žGþÈŸó9Ÿ{Ïç}Ï9Ÿs¯MR¼$/IÃn¼ñÆÓ{ì±;}}}ãív»] C–eɲ,·Ëå*|öÙgÿñ“Ÿüä#I¹’šm’’%ÌËËûyllìY---r»Ýr»Ýý[k0›Í&›Í&»Ý.§Ó©œœœSRRþGÒ>›¤ÙyyyDGGŸÕÜÜ,˲ú»¾œt¼½½•——÷qJJÊ¿ýío¯»ð op¹\¶þ®'«ÖÖV………%çååm¶ÕÖÖ´Ùl1œ±pbl6›Ünw­¾¾¾Ùív;û»B 6›­ÙiYV‡Áêv»•••¡¢¢Bµ¶¶~ÝuëwN§—"##5|xª8 `0êÏ~Þ“>¶°°P111_k½L°ÙlNgg—ƒsr²T__§éÓgÈÇÇïk®Z›>ú@sæ|£_¶]__§Ý»w*''KÉÉ)ýRèKýÙÏæ>Ö²,[§—ƒKJJ4~üx566ª¾¾þë¬×Q**Êúe»v»]#GŽÒæÍ›Ý Rÿö󃹵,K†kSS£Ün«ßŸwí¯qV­­nY–ÔÒÒÜ?ÀÀÓ|P«þõœ–mÜ«=Ù¥rF WÚ詺üÆ«5=Ê)i«þ¼p±Þ¬ê¼ˆðKÕcCÓ·žË:4Å&ï 0EF%iÊÜ+õKÏPŒ×ÑÛ\ýï´ä‹}ÊÈ: jG°"‡¦iæùëŠSg_©»¿ñG}6æ‡Zò䕊lܬÇnù­x»þqû Øí†’LåT¸ŸªhbÀèÏ~~°÷±]dêï`ío§úþ£ª zôŽß鵌ùE&kÔØ‘jÈ߯õ+vèóÕ«uýê–É!1s¶Î=tP¹ÿsm9 ÅŸ6SiCÚ¦¥†H%’dSôس5&¬I•EùÊÎÙ¬%Û¬M…éùŸN’Ÿ$•¦oÿ½–æºä‘¤c')©©B³ÖëÕ§ì7ªâŽ­gc©r–¨0´D ’‘pÍüï/u󫵺ä᥺ûtb@éÏ~n0÷±ÝŒç „:àÔÖ¨õO?¬×2lšøíGô§'*ÄÖ6=sÅCúÙŸ?Ò¿zV³žû‰Þó-<´Ö–ÿ»\?~S:ó{¿ÑOÇ)-ë9I²ë´k~£ßÌj›æ.]®;¯Hëß_©í?¤©ªÕª¿>¬¥¹¿î!=øÝI =<æÃU¬Í[«4ÂWÒ±úCæêÏÿ¦:¿! ê³öÀàBÛºkõóß@©Niïëùå%²¸V¿øîá`•$_ Ÿw·îš.ëÀ½üiS¯7a£Ñ‘’šjUÛ,©ô}½ôa¥ìiWë7µ VIòŽÒä3ÒØQAÍ+uÏ‚KtÁÏ–©öð´ºt½ùð]ºþò:ÿ’ëuóï_ÑÖJ÷WËß}Îùºá÷OëÛoÔEóçé—ߤ{^ئj5jÙÏæèæW %ÕêÍ;çhæ9s4ó¾÷ŽËtœÌècûB—ájYýû7Pê€S\V¦2,)aú4Å7ÓGÓÏ™&µ*#+·ÇE»]5*ÎK׆7Ÿ×»y’RFiŒ—¤ìleIŠŸ>] 'ôÝi…zíç·êÏï—)á‚oéÚs"UòñÓºãÁ÷Uq¤Ú·j¹öØÓtþ¹J³²õé3Ò‹»·è6]39H’&^r›îüémºsáh9N¤JPècûF——…·6 „:àÔV_T¤I)!C:^ *ZÑ’ KK%¥yXj«Þûå½×~RÀhÝtÛÅŠ‘TW\¬:Ii¡¡½¯¸$mû¯žÛÚ¤ÈKë›'È®o*$çR=´î}­®¾P ?}1úz=þÈe “T’¡KžÜ¥;«ôãËiÎÖÿèåÍ–†ÏZ¤Ë¸ç:èÐÇö ¾™ è†T”%I ?~ÒR•HwÜð¢.´ hë«€À!ŠN9M³f®´Ð¶¡Â±± –TTTÜñ6=T™Ýv†úÆíšõFû9E:X¨¶ßÄ:FtR’ü´KUÕÕ’"z½màTÆ™+Ф$ ·IÛ>ùX;n£qG5-Úºö ÕÊG)Çö Ð£4'1IÉ6iÛgŸhÏÍ£5ª—ƒƒd—4üÒûµxvû3o/E»Í¡ËÐ{§^ç¾Á÷úÝ ¿@×Í “ —èO¬Ò¯Fó¸U´öI=´ô )×èÛ3 ^ ›«o_.+ÿ ýþÑU*pµ›×Z£Ì홪”$»½í ®¯W]Åx%')^ÒÁÒ¥Mœ¨I_ýQœ‡Ï¬:vIMª­k9¡]N%}væzÉ•×J’ÞüÏK½.ãDë˜á¯Y?¸Cï~@K—ÿN×®}^£Óbd+KמÌ2¹B&ê–»¯R²Ñª~šñý;´p×ZòÎïô­ÏžÓˆ´x·”)/#Cy5#µøµÇuED¼†ÅHÊ{_{f´n¿þ˜b’é†3ÿ«ß­~H?øÕ?6\¶ª\m)LÕ½¿¹D±Ô$&6VvКܯÇ2SeY)ºöƳirwÑozÒÇî×»s¢ýþ`À™+à‰°™º÷é§uÿµs41ªEÙÛw耆ꌷè‰gÖ·Fù˜ßfè ÝóôÓzàº9:-Ö­‚í_hkv•œ ÓtÉ ó4Æ!I#tÍâ+59ºN_û¯6–[È]ø«'ô›Ë'È+c¥þõÜËz{C¾¼œÕzا†|ã‡Z|þH…TnÖ’%«´3½¸ÝHcàä1óœ9úá­·©²²ò«iUÕÕúñí‹5óœ9F·e«­íøûôÓU;v\G³¶/pÏõ½€!=·TY{×é¼s/<.X%)&<\9%%í>{©¤4Gá1½Z8}lßèæQœþßñP /”U5éã—é[Ï—ÍëÈïÁ¶´HéY{46m”‚}ä4TYé»4,uŒv¦ç(:À)¿à05y¸£…ÑúؾÑÍ=×þÆt Ô0Ï¡}([‹[o¸æÐ´]<÷|ÕºôéçŸjDü0Ùýtñ7æêýWjÍæ ò÷Ò¼¹óÕ*©²¶É£å€®ÐÇöN,}íÚÏ!‡Ãñu×é+ùùùŠï·í·¶¶ª¬¬LÓ¦Íì·:@_éï~¾»>Öô¥:=s‰‰QNN–"""åïïÿuÖé(ýuM¾±±AEEEJJÞ/Û€¾ÖŸýü`ïc; ׄ„$iëÖ-jn>ö¯GBB¢V¯^Õ/ÛöññÕðá)JNNé—í@_ëÏ~~°÷±^½Óå£8 çW sæ‡xèΖ––î—s–——õwTœo¿ýV×€AÅ™–6²¿ëÀ â”¤yóôw=z¬¨¨PÑÑ'ç×b T´içhshK v+V¼Í£8˜F¸`á €a„+†®ÖéOÎI…ZóïåÚÕØùþc¾©ëf ìQîü5zñ½}jò­‹¯ž¡[×È3-uªl°ä;$L^ý]IÊՇϮTÆIºòÒI éïê D­5ÊÚºE{ JTZQ/{`˜Â#ã5vòx °ËÓcj¾ïZ½¶¹âЛ>~ ÑÐÔñš4v¨ûHÜ ï¼¢Ï ½4ê‚kuv|ûÜÊùä%½—.œ{­fëâótk†Þ}îåFMÕ·.§€^5‰è£ýh9 µK?U^ÌL-š9LÞ­“¿FϾ·O§-Ò•§‡I¬3ðŽI d]¼C}ž¤áÉm±ÁIÇ™–îûµT²÷ÜÊËÈV“$Õg)½ðäùåòè%ËõeI×iÌ×çKßÒ[2TXçPHT„üZ*”¿o“V¼±T¸ÔÓc*0*IÃãèTsÕAíÞð¾Þ^PÇÿꦟ†‘M.åäêèwy±òò]’×0%Ç ô U}´-õªª©SmU<þ²×Öá˜DOtqæ¢ÑgÍÑèCÿ\û²–í’OŸ£Ñ_KÝN\k¾2r\rFEiHq±23hfìP®…ðåñ™v”Û3ižæNŽ‘ï¡éåûÖè½5™úrÍf%^6Ý£cªb‹$Ù;aŽÎMl›fÕíÓŠ××(?=CE3bL ü“’»ö ää¨hfÜ‘+4%yÊm”¼R5ÔÑw-`JŸì‡oª.¸&^.§¯|úr .ÂÕÚóÞ«Zï8ú2NÓ~-éSå‡MÑÕ ôùsŸ©yô8Uf« ´V-¾C›z†Îž×Ö 5—k׆ Ú•[¢·ŸB‡ŽÔôéãã{b×p[ò2•ÝlWü˜3m½©õÙ™:0s¨ŽºÚÔZ«Ümµ%³X5²ù*4m†¾9%Nήæ5Whߦڞ[¢ªF‡‚Âb5rÊTñ“­a·–¾´V…ÃÎÒMsÓäT¶éu½þe½F]p½ÎŽÍлϭV}Ê8…Õç)¿´V-^AŠ5C³'E(ë½´:¿­z»V<£]’Ô®¬¡Ye{7jÝÎ\W5IÞ¾ IÒ´9Ó”à×ÅII ßø…²3óÕšØöé·|§6d5Ê3]‹æQ`ûõË7w>¯ô mÎo–3~–.:o„|%MŒsè•wvkÛ—Ùš<ÓÃ:Fž¦óÆÊOR­_¹^Z_¬¢â&M;Zà ·kÛKa‰£56®—mЇ\••ª—2ütMuÔ©«yÝ*ÜÑõûápaqghá£Ä%»æÚZ5I óí$â(©¦¾^R¸‡¥ºµå3Úß~’W¤NŸ1êè÷b;~I÷ö€ rrT65RáyÊ+•Ã5ì«8Á3ûü¯Ö\­Ìwvë`a¥4ÔêÖÝkÕ˧Ï÷ãÀ^í©‘¼“fiáyÃÛ8 mÐÔ1»B:9&­îú?œªN8\e‹ÖèQ¡Ú¹9Wy-J–¯ìüVÙ‡¦h¸Ÿtôµ–CÂ#i—jkëT^YÙö)w×rý¿]íªUM­ÔÛÞÓ•“©¼VÉY—£Ï?9(©A-޶é¹-‰JvJÍe媖›œt\‡Õ弊 ÕJŠ6ì«3&GÌ0 uî־РUÉ¿Çõ ‘SÅjlj”z±þ×Í{h’â¼ t`û;úWNŒ’FŒÓéã†)ÈÑõ¼î4v÷~8i˜Ž nmUeÆfmÜ“§¢ò:5µ4«U’ÛåêQÝ$^«Þ~òéãýhª©‘KR\\\Ç#‡{¢»þ§¬WIa#F)fËZådä¨Á–§¼V‡R“:?¶ì>òqJrØåíí-›¤Ð1stfrûOþvôúšŠKY™ùj•ÔZ‘§ýíçå*#·YÉý¤Cã­w1ïðD[ûûJ¶¶m6Ùm6žÓ“ñɶž®ÐŸGê›—iÇæ/µ3«Pû¾8¨Œôqš¿pªbºš×MÛôÍû¡…„(LRaV–ЦD)ú¨üs«0·@.9Ö“8z@“g|”4Þ'øZ ”ý8†WHˆ”¯ÒÂBµŒJô¸ìô˜ìiÿ‡S‚™p•—’G —oÎ>eåI>i©J8¶äÒZõY³†¸t`ïnU*PãÆ%ÉÚ¬I ;õqö-YY¢”hÙ«t &LgÏ£ž]HkÓ•©·MñI Gð¾‰ó¹äe(Û•¢´°±š–ºOï§oÔÒw*5*1TNW•*|RuæÑäøÝZ»Vo¯ªVJH“òwïQ=LSNK”Ý^§¨)»t¯>ù°UÑV‰²ó«$yþäyPPlªQΦ´¶S@i€jóö©F‡Z߬à@IÕéZ¿9J3'÷ãker?&SvÔhÚ¥ukô¶£\IÁ-*ÍÈê0ˆÛëü˜ô ÿÃ)ÇØGiGü(’$_ OíàYRo_Ùª²µ}Û~UzÇiâyó4=Æ!ÉWiç.М±1rTdèËÍÛ´7¿J‡]=¿ $IÊÌ<(Ëvôe¤6¾JJŽ‘Í}@éÙ’|”tÖÅúæ”á vÐŽM_h뾃ª©k’«Ëyþ5gÎ%«h—6oÏUCpªfοP“Cm’5vÖt¥„û¨6?]Ù “Ü£o5òMª™)òm8 ={²T\Vw‚£§ÍjlnTýÁtmÛ¼Q¶îW™#Z£Î¯ò|ýê]¯ë×WÏÒ˜Ø`G§éìׯÊ#ós™)›Ý!//¯#Iwj½Çõ(Ü*ßò¢îºt¦Æ&„*04A“þ\˲:úeXKûš)›M¶+^ýÚk x¢ƒp§_m(UiiÛ߆_M”Î|P{KOûTw¤JjÝ£§/>] ŸkÒœÅOjåæuzåk•¸i±¦Í¼S–÷ ¬Ô;ôii©JKŠU°wµþy­¥g®º^Ofõ|‡6ÿj¬ü®|ÙX0wXÞÁ·ôÈ34å7÷é"C¨j¿Ôk?®¥»›O¬œAÙf•zçGsôw‡é×ïfª$k™¾Uy¿.þÁ•Z¢â½kî­;4ëWiß–çu¥ë1-¸äIex´¾[Yï.QÑY¿Ök[ªhÛ‹š›õ ]tûÛª;T~mm­¿³TÍÍÍGþ²Ö4ë7p4kÇÒåj™ÿýwcJÒ—ëÞÈ%ºâ¢ßiKË1‹|A?ý}¹f×/5<²|ù2«+éN±tÎVé1ÓóŸžkù§ýØú´ê˜Í9Ö“sƒ¬á·¯±š<(«ö¹–FýÒÚqÔ’›¬»“mÖÂ뺬[G¾¸7ÕÒ¢Y-=^³7å½kÝbýp¥¡Q›U=c͵%Yw¯o÷îØÿ 5ÉqžõÿJ-˲ZÏö¶Îýë#ó«ÿk]”dݳÑíÁúÇkyýËw›õù¡ÿ×ßlÅݶº—õàê^´æÛS­_~Ù~b•õÖuÑVüÍïZ+ïJ²tù+ýU; SË—/³zyÏu‹{ð;÷ך|Ì,g‚n¾ÿfµ>ù ^«émäÛe·[r¹zr¶T§gæ{iÚÿ¤KK¾-//yͦí~åFýåÛ³4*:X!ñã4ÿgo)û«¢›µ÷¥Ûtþ˜ù(2y’<´A-]•wJyO7 ÓÝë¥ÎÛª»yƒTnŽr¬Ñ7ÎqdZê¹:'îS}¸Ê%•.Ñë«'hþüØ#óƒæê›gåiéÒíݯ߃¹¹j‰ŒÔá_ ­­­Õ!CzW¿Îé#G­jkLjüì~-~g†úãâ+(0õ.\k·i[æHuVT‡³ÓÎÖ mÓ¶==-ØRK}‘¾|öÏz)k„ΘÒI§Ñ¡}÷f­¿'UZø‚šš›ÕüÎw býóšóôXóMzeW‘ò×<¬á+®Ñ•ºq\ô}ÿº7}÷2í(,Uúª'uÛìD9;-ï#6¦­ýIDATÖi[u3o°JISš}¿öík?1III.¢«"úµj@·z®¹9ÊQœâ:»åaª¡±yÊÎöðÎçžßkœÍ&›Í.¯€q×6M{øEÝ3¡Wµ;Zö úÛ{Óô‹¿Ý¨ÓÂý˜tî¹étm|ç}•HRE™Ê¬X6{²‡øiHâ Í=#ÚÀ†¡®ÚêTlG¿ ô­K*õø­?×{ûÊUWW¡¬ÏßÖÚ©ººZ*+SY`‚ŽY-88X5eejînýÃrÑt¿0Zð€¶DO×İ#Y¢§]¥³ÎÑ-O}¨;Wê7êóîÑçMÔo kÞªï{Eñwþ\:EÍyê6ý¹u±ÿQrÿÖ ð@ïÂuh¼âU¤¢¢Næ[…*,ŠÓ°aŽN8ÆáM¥¥*«jPSÙv½vûT÷’™©Lë#Ýë'?¿¶¿Ô»×JÅÅ*–¤‘×iñÂýjÊiºìî§´æÀ Ü̺j«S²#tõSËô›Ä•úÞC•0IWüïG*tIáááRx¸ÂkktìÝ‘ššGDÈ«»õK¼CëšT¼÷3ý휺kö=vh°ß´?«§ÿô}“¥ð¡uÙC¿×•/êÅ5ÔoÀªÒÊÅWꯡÒ«?ŸÐÖI•½¦;~•®»W<ìV€þÔ»p2Nã†íÕºuÎv¹VšÇiÜ(Ësú+4<\ááá ö5ûðmHˆB¼®ÐêÔÐÐöרÜ*k÷+I¶$ÝôÖ~mþÛ ÿòa}säh]ýì>¹MÖa°°uÑV]Í̧ëŽmP^UƒêʲõÅ[7kT£Ÿâãä„D%¶f*3·ý µÊÈ(VBBB÷ë·góQ䈙ºî‘¿êæØµZú^iÇõqF*2´FååÍ=+À°”óüõºæµ±úû+·kÄ¡ Í}þQ½Q^ §æ…õ!ùìGs¤7®—_Èwµ¢+ §—96U·Þ5EïþéAm:ö™9w¡^¼ÿI5Ü|—® 9áúõŽÛ}¤SO¡Ö­ÝÔU7ﯴ‹îÖÓìÑ®ÿIÒ÷=¦Ï;+ï”×U[uÓŽ§€–Oþ«%®…Zt®MЏX—žµUË—·»ÄS÷¾–¯NÒ¢Ec»_¿C~òóµÉÛ»“»ÙÅ_苼;Ö«—å÷¯†M¿Ó%?Þ©«^zVWµ–pÇ粬¹Ž|H^½8QºôE5T>£yýWe C½>IL¾å ý)æ}ãìé©åë´//[[?~U¿[4M·e\­§~{¾üLÖÔCQÑÑÒöµZSQ­ƒùej½J·§AOþð½¹»LM®Jå|ñ†^Y]ܶBË.½÷ÆzåT¹ÔT–©ûKÔ®°ÎÊë‡}0ºj«nÚqp*Òë¿ý¹þõY¦*›êu`Ó³ºá»Ï+zñšï/I±ºî¾”~ÿwõ—µùª*Þªg¾§>>ó^}o¢'ëéõûïÓ kö«¤Á­–šL­üýízòÀyºìüI%zñ'×é¡w¶é`]³êòWëÏß¹_ÛüB?ãIùLÉÛúÁ¥ÿ#ûÏ^ÓÃçõd0#0õö9W˲,«õ õÁƒßµæÏiE…X‰§Í±®¸óykg'§zþœë È~Ѻ"mˆå?$Þ{ÑãÖn˲¬†½Ö¿o›kOµü­ø‘3¬«žÚj¹-˲ Þ²n›3ÞJˆ°|ýìäé×Z¯¯î²¼ÿ\ãkùúúZ¾¾^–C²^‡þ¿èY«ÖÔ~ ïZ7Æ[w­³ºn«nÚqp¶Y™µñ™»­Eg¤Z1ÁAVÔ˜ÙÖ5¿_y̱Òlí{ùvkÁ”+,z´5ç;±Ö×x¸¾»ØZûÔíÖ‚ÓS­ØË?$ÎûZO®=¼D…µé™;¬“S¬è`+dØx럾híô´üæ“[c-Éf9}¿WÚþæuòPî:žsŵ|ù2˶|ù2kÞ¼ýñ +V¼Í÷`á €a„+†®F¸`á €a„+†®攤o>´Mî–Æþ®KÙ¾'e½2Ú´s´9´%³ŸN<®6/_9¼|û»>½r²Ö{ £M;GÛ˜C[bð*æ²0¦®F¸`á €a„+†9Ÿä£¾“¨+B:[¥I/¼£W+$É¡ñ“#tIŠŸFF8ÔTÙ¤=¹Uú÷º´zVÖ6¶èÊ3¾šbµºUVÑ Uk‹õ|f³Ü'°s}%(2XWN¢)Q>Šòvë@AµþõI™ÖW[ý]µ>à¥i§ªqO…¶Öõ¾”ÁÚfÝíWääazî,?µºÛígm¥î~¶D{ýk ÐÕ³B5c¨¯âœ­:p°Rÿ÷N…2Ü’ì^:óÌ(]7ÊO1N·òó«ôìGeÚ\çÙöÛ:y˜ž<ËOÎý5y¢?ß©‘G-e“Ý.å­ÏÑ-뚺ݾIž´U§û 0„k“^~%C¯ÛÚþ‹¯GãkôýeUª–$Yjj’dóÖ…Å릠zýk}‘ž/i•O¨¯fNŠÔ£Wùêo”èËÆî˲¥ÄêÊÊ ýìÕråÚ$/§SI##t×7cTúBž–U÷l‡Rf$é¡Ð2]¶¼ÆH0_žM‰ÃäÈ*Ó?jP‘ÛKÓgÅ龋¥;_*mëoÍš¢šâJm­ëmÖ6ë~¿ü¼ìjØU Ë?è$üôÓ+¢¾³Hÿ»º^Ån§R"ì:p¨M¦Äég#šõÌŠ}\åÔùçÆéç5놥ժéI»ëSڙߢ‰‡§ÕVêîÇ+©Ïýá{ÊÏwy°}³ºm«®ö`:¼,ÜÔÔªšÆCÍ–äv«úðÿn¹,)|l”¾Z«û_+Ô’ôåT¹´/»ZÏ-ÉÕsõCtëT?9=)Ë-ɲÚþohUyM“6Qª•u~:-ÎÖã²Ùmò¶÷|=Ï˳´cýA=½³^yõ–\.­^U®/Â43ÌØfW­~&KOçÈæ`m³î÷Ë×Ë®W矆ЙÅ%úãÆ:å7Xr55kwA“$IM棼í¥Z’߬êš½¹­VVœŸR<Ü~»¦ÏŠTâþý§¨ë×14-HêªõQ¾åÁöÍê®­Úx¾/@êàÌÕ>ºxŠŸ¶o<¨®cf¹[ôÞú*]qY˜ÎZW ï!Ë’œ›$O »¾±0E·%Ù$ÅhɭѲr‹uå’*5úøjáìH}3ÑG¡îíÚ[ª¿}^«"·$Ù?2R·L ÒÈ!v5×¹´wk‘ØìÒœÎÊ렲͖M¾Þ½Û×-@‹­ê72õÏÂÎÚªQ­¶c£Z;*v°¶Ù1ûåçeW]cgá­Ù#½µy]í¡0=V«rÊZ4dˆ—üäRƒ$_‡|ªuÐÃíK’w\¸¾ŸÜ >_§†Ó»ª¼SgôWážÃ—a{±ýÐu[µñ|_€þÕ»põòQò—vtØmªµ°A»¤¤PIE=+Úát(qD˜f»´²¨'× Ýú`É~e™¬ÿ -Ó·«]Æuhî¼x-l*Öï_¬ÑoÝpqœîmÈÑâM.Ɉn½0P¥èGéMªóñÑHÿfµvZÞñ|4®¹A•ôl_O:¶U7ó:0XÛìØýòõ²+ "L÷^æ­ñ‘NÕ–ÔèÕJôQ…%ÉKÑÁ–"ÒbôÐL%ÚTSÙ UŸëßYÍj‘´ss‰¶_£‡/,×S_¶è¼©¾Z·¡¸ÓÃê¸vµyë²s†¨dmŽV7è˜û«ÇÒ¹q.}øaÓW“zºýÑu[õp_€~Ö»p òR”ZTÖÙ­«EeuNE˳p Óß~zä:Vkc“Ö~Z¨×J{U»£k~b£^ù{µ2›$5Öé¿;õ|Š¿†lr©ÊÇ® µhCA£Š]’\ÚÜ“›Iv]93H¥›sµ®Ù@}²®Úª'í8XÛ¬ƒýª,ªÑ†º­ÚY¬¿¶85áôhݵ(R_(Ön›CANKÍ5õzmc‰öÕÙ”8J—Ù*t÷¶î:nd°R‹ªõ§ò#Óz´ýÔe[µöl_€þÖ»p­mQ©œ õ—TÕÑ…´¨ÄÓ:< I’ÜnÕº,/wkˆ—bä¯ßœ¦[M²ÙlRUƒ†Hªª¨Ñ[™!úÑ5‰µ£Rom©ÖNîØuÚÙ±ZÐTªÅ›ÌÕy êª­Z½,G«ûà™¿««¶êºk›õh¿ü}”äÒÖ2K’Kë2[4?Ñ_^ûêÔv±Ó©ø0»Š2›%Ë!·ì ôi·~K³ 륄vÞÙöK6çiþæ£7?rV² .Õ%Ç<:bT"sÊôi}»‰–<Ú~Ÿi×V%û=ß` èõ74m+ÖsuÁúÃåQš—ä«¡A^JŽÒ5 ôÃ!Õzb]½ _5òHU}‹á«1>v…:älªÑ[»mš?'R3Âòrب³‡:ÚV°{krª¯¢¼mòòõRbˆCŽvgÑÇ•'I~ºuA˜¬Mô¼“ö!͞몭ºiÇAÛf]î—CsΉѥÉ> ó²É7ÐO—Í WRV¹Vº¯™¾½\™É‘ú^Š·ü¥ÒeõZ±·Yj­×'6]pv”¦†Øåp84bB”…5huV‹Û÷”¯ÎáÔú=µ:ê³'Û7¦û¶N&½¾bÔ™’ô*­™¥ûo TaA¹þ¸¬R›>Î׳¢tÝ¢$Ýí+ÕÔº´ks³>-h•åç­3&„ë¶9^âe©¢´^O½_Ñvÿ·“òB¦FkNM­g$è?gÙö¶U™úÍŽÎÆÇ]µU7í8n¶Y×ûe)§¸UgMÓe!Ny5¹´'£T?û¼Z_}uCu•|Ç®[fÄéŸsª-«Óëoé½IjÕ§+óå3#B7\–¬{¼¥òÒ:½±¤HË«=Ù¾gíj¬³}jõxæ±áÜýöÍñ ­€“ˆmùòeÖûFôw=~2b_Ü€i„+†®F¸`á €a„+†®F¸`˜S’^»9^uõõÝ-;àôä§ÔáÚ´s´9´%³/6 Wùûû÷w}¸, €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®F¸`á €a„+†®攤+Þîïz0hü[h@Ö©¼/IEND®B`‚OTPClient-2.4.6/data/screenshots/manualadd.png000066400000000000000000000427171414446074000212500ustar00rootroot00000000000000‰PNG  IHDR=S1û†sBIT|dˆtEXtSoftwaregnome-screenshotï¿> IDATxœìÝw|ÕÂÆñßnÚ¦’Bz(!„ÞH•bC%T è½^õµõÚëÕkEì×ÞPTªT”Þ{ @zB Éf³íý#” ÉfIŸ¯ŸøIvæœ9;œÝ}öÌ™e @óvíÚ]0}úôÇâ<===9Âétb·ÛíûöíÛw×]w=5wîÜß¿§²0ÑîÛo¿}999y°ÍfÃápàp8êµÑ"""Ò°  F£OOO¾ú꫹ãÆ{ØâÄûí·¯]qŃKKKq88Îún³ˆˆˆ4@N§‡ÃÍf£S§N‰­[·n6cÆŒ¥†þýûßðóÏ?ÿÏjµ껑"""rvñööv&%%ý˰sçÎQQQ •W ÒÒÒv:d1ÞõÝ 9;Ùl6‹ÑÃÃë¾""""g////o£ÓéÔÜ q‡ÁXß-‘³›ÓéDBDDDܦ@!"""nS ·)Pˆ4`Ö/séÀ é3úu6Tçjø+_æ¢rÍû;k¸Îz^J¾>+ÿ¹âµõÕhø/Ü?ðBúÜö5ÙÕh¶ˆœý<ë»"R+ËüÁa€œßøiýtJªíïÁ´ê3€ ŠËþ:˜º„µ ®K•=Ø2¸–Û "g# ‘†ªt%?ÿySûöÄmÙÌÂk¸;©;µ{àf$ÿû ’üµöµÑÜ>úÞô:Ôê†E¤Žôx!:vàùgž&8¸ì BÁ¡C<üø¬]·ž%¿-¬Q½ " Tɲ…üYäIÏ÷ÐÁq#oü¾U»Ó³Ü«Öšþo½ö)‹6ï#ßИ¶M XOª§:ëÔˆù/æýïm¦-M!­À›¨I\~Ó­\Õ9äÔc©Î~|ìfžú³”îw¿ÃääXŒE;˜ùöÛÌXšBº=„ønC¹ãŽ+él,;drÉód_|% 9KY‘šA‰o ]‡Mà‘t"èL´_äo*¾ys6lÜÄ÷ÜË”I¯`0¸ëÞûIݱƒfM›Ö¸^Í¡i,ü¹` fÏn èÏý[Ãá?øye¹(àHá­{Ÿ`Ú²4|: aÔ¥í!/{ùjª³NäòÃwðÌ·ë±µʵ£zà·ï¦L¼‡÷¶ÛNZׯŽ/Ÿä…?ÒøÂûy*9#|óð¼ôS.M/ÇØádÿú.÷<ÿùÇÏößæ’bLäâäA$:ÿâþ˧[«3™DD*óêK/ÃÎ]»¹óž{¹óž{Iݱƒè¨(&½ø|ëÕ…HCT¼˜Ÿ—•à‘t>}ý!p@ßyß,çÞçã °f.³€ÿûx÷é ñèñ2Ý?÷x=ÕY§&¶Íà£Åøô¸7žB0pm7oFOøŽ/>[Ä _õðê7yè[°6Å3÷ `Ãt>Zo!|äÝ<3¾F†¼g$//û‰E‡“ì{¤pÛë˜2i¡@fðNF¼¹…M›ó mc÷Ú/ò7ÎÔɯrÇĻٹk7Q‘‘¼>ée¢£¢j\¯…HTøçB–YÀ”»˜IÏnò(ñ‚¢?°¤ä|šàPz:…@·n]Ë‚Bª³NM˜wï&èÚ»7G§hzuîÅy¦ï˜»{7{iVö`þo<ût ûÐò’Ëé|$(ü믲‘ˆ9Fùš3IÏâOÝfdóæø²…‚C‡ wxyzáããsüo//|¼}NS¢j " N!¿/\°îZÆ»Ê-².ãç%Å ¼ÐOϲ—¯ñ4WЯÎ:5át:Ë~1”¿±ìbþÇ'ަ§°ÕàƒÉÇÂŽo>ä×áOrAøbZŒ|’»4*W‡‘q•lÔpÒ¶E¤Fróò¸óî{ùkÏžcs&öìÝË÷ÜËÔÉ“ ­Q½šC!ÒÐúƒŸWÙðìõ?ý¶%G¾»‡®F ‹,¦ðkÖŒp`Û† ”TRUuÖ© ¿-ˆ¶®XÁ¡#Ù·®bm1øÄÇ{lM/Zÿco^ÛãáE¼ñÉF¬€W|sâ€ô‰;“tì§1~g°¡"rŠ{ÿýб01uò$¦NžD³¦MÙ³w/÷<ð`ëÕ…H“ÿÛBVÙŒôèׇ€ò ‚ÏçÂΓY³|!‹ /ap»d®î0ƒ)¿¼Ä^;kfë‚ß0—/Suj¢õH®?ï{ž_òw>³ŸKšfÙ÷ßsÀ£7_×/ŽœvÖô*»¾--,7sÙ̘óÝ›Lþ&×Äçú¾ÓyzÑËÜòX ·ÃP°—µ-yð‰D»Û>©ÔöÔT[¶dҋϘ:y÷<ð ©;vÔ¸^Pˆ4(Y¸p-cžòÉ‘Á Ð £m?/*¢¹ú¹IÜva –|ŇӗPÐæRúž0§ª:ëÔDÞžÊ##ÚãÜôN[L~ì¥Ü=åþÙ¢ÜÛJ@ÀÔ›®OÂÛ¶ß^ÀA1ø±©<1º^;á³¾döŠ4¼<=(Ô ‘Zµä·…|ü¿wO8´ÊÇÿ{·Æ× 0êå+"""îÑ…ˆˆˆ¸MBDDDܦ@!"""nS ·)PˆˆˆˆÛ(DDDÄm """â6 q›…ˆˆˆ¸ÍSwîwyZ,–únƒˆˆˆœå<̯ï6ˆˆˆÈYÎsΜïë» """r–3dd¤k…ˆˆˆ¸EgyˆˆˆˆÛ(DDDÄm """â6 q›…ˆˆˆ¸MBDDDܦ@!"""nS ·)PˆˆˆˆÛ(DDDÄm """â6OW 8NöïO#//»Ý^mq‰‡‡'!!ÁÄÅ5Å`0ê§ÒðTÔOEÎ%.ßlÿþ4JK-´k×ßÚj—Hµ‘’²±±q@Y?µZ­´oßS=·P¤¬ŸnݺooŸcýTä\âòE~~>:u&+;o//¶lMÁRZJRçNlÛžJ±ÙL‡öíØµk÷9÷{Û6­IKÛÏáÂÂsî÷ŒŒLò¤UbK²³sΚߋ‹‹iݺ­ZµaÍšÕÇÞ¨óóóIJêŠÍfÇj-<ã/WFÚ¶mÏŠË(äœäòÅÚµ«éÚµ;«×¬#±eþµÕ6‘*áçë‹§§'kÖ¬")©PÖO{÷î‹Ãá¨çŠg0X¶lɱ~*r.©Ñ¤L‡ÃAxxc… ©wþþ¬XµºÂà 0! ÓéÒ÷7‘³ŠË‡< ìEaµZõâÁ鬸ZýSD¤îÔ(P€“ŒÌLš7krf[#R½ztDDêS G( i“&è  4ËW®¢çyÝOy\#""u§Æ‡<,‹Þ°¥Ap:•ò¨‡ÆˆˆüMÕðddfÒ¬©yHý«ht¢Œ…œ];ë֭寿vaµZ«UÆÏÏèèºvíŽÑèQË-©\G(š6‰Ó…4ËW®¦çy§ž†§þ)g› 6PZjáºën  Ze ²`ÁOlذ.]’j¹…"•«ñ…ÅRZÅ{ùâÞÇø.³²åq\ýÒ³ŒŒœ‡Ù<:sV¥’º÷ >Qñ$vèÇ•#{íU½ºF kÌÌÖ{ÄàéGhL"纎kº…ë¦%rz–}ü:m?,ÛÎþ‚RLÁáĵîÁð«FÑ#Ê(`Öc·ðG©¼xEã“ ïàý[%ÿúiÜ×ëÄ%[>¼‡æZüø;ü_Ç“z¡ý©Kæ3ã»Yº.}ü}þ¯cm>Iièöíû‹‘#¯Äh4RTTT­2^^Þ\tÑ¥|ùå§'ŠÝ¼?~"_¥WV²)׿}&¾„÷c_pWç Vqf±lÆ2L £K¨ O¤¦å\U²‡_>û”‹·±ï`)¦pš¶íÍèk¯¦wôß`´&ë;î¸a9ƒ>û/Âë»1nLÊÌÈÌ¢i“Óòhε¯}É?\²>ýû‡¹mÝ>~âR‚ÊjÁnµb·§óËäù<·×»[Â(IÛÂ3?áá§vsÏ¿¯¡C@Õuÿ>‰™1#xíÕ+iŠ«9—¿~ÄóSß!ô…G^“g*gƒÝ»U8_¢ú#Å,÷?¼¹ç<î¼ïºÅ™0gîbÍï›°zÕãáFŠê5àaçIíØÅŠUfBBì¬X¹•[:´ã„;8ä¯ä‡_Ñöº«0¼üÆ“ËËßMqq1&“¯K£kN§///JK-'-iƵ¯~Ƙ#U¥ÿwnèÇ :ò¾iÄÇ;SNWyÉnÍšC`Ë!t uá㢦å\RÌ’7çµÝݸ}âHŠ5aÎþ‹ul¡Äëx˜HýìîN»’ì¯/–µ¬ÆÿÒM›TuéX›•£—r=ÀÇÕʱ#ƒNÈûýs>ÉìÍó¯Þ@ ,Xí mûp]§.D=s;ï~ßIã1TQ—Ã@Ù»½ÕНZ_1–K¼-©¥ ÷®éS•nŪÕôèîÆ•;X¹ÊÁàÇîà¢V¥ØN›wahb7œ¥%Xkz}¬Ý«Xv°+×ßhᵯW³ýúv´.Ÿ(ÂóèóØK×ðªÞé䈚\­âbÄ' Ÿ#š<À× ÀÀ#¢|{òÀG=]nO˹¹%Ëí zäNw>òÂjIó¶'m×n£Ô¦¤^j| ‹ÅBU“ÞÊwò²ß8œŽr¥ö0N ¯žH3ëaJŽ.°Û°•z2ðêKùê‘9,5óMUÕU¶äècN'8Ì%8 NìØ«l«œÍœTüï[Ísƒþ&3{w§aI=2Š`çÄ›”:+ù½òííYµŠ¬ÎÃéÓ£”ŸßšÁŠ]×Ò:¡Ü  ÅEeÛr©½rN«û¹?Vvþô½·’”ô"|âºó‰ï ¬ååÑShôìŒom#í·™òÕŸ¤dšñ‰¡ÍÐÛxrd+N=¸PÓrYúþ«|ôçnÒ ,˜·¤ßuwpG¿hN¹?«Á_S1{Óòpv;u9%Ìr,“WÛW’ü†¤Û˜ùäŘŠR™ñÎûÌ^ýùžá´8Ž;¯ëE¤gUmXÅ c¾Áotöþº’íyF¢;]ÎíÿhEÊŒiÌ_µ“C½ÆNä¾ËšãUÑî.Mç·OÞã«¥Û8`¤Yb7ÆÜ1ž~á€5ƒ?>}/—¤°¿ÐèV=¸ú–20öÈbó.¾{ó]~Xµ›ƒ¾MèÚ9€ƒåë>íóª}5ÞLfV–ûgy” -3–Ž-¼°:ONå¬MZÑ–?IKâ]©Ø‰½ô0û–Íá·ŒXµðEoÖ Ë³çòù´¯N»Î˜Q#=bx•uU6:Qý÷åV$ëÌ„7ç±½Ã3t"|*\Ón)¦¨èä»—š±É4Ç·™ÁŠ•itÜ /ÿRÎKx‡ŸVîæÚ§ïÈ:äѰÌü~Ÿ|þÅi×¹úÊÑ\5zÔÛfÝ '6Sü ÷þ» cn½‰çoˆàðo¯r÷Ûïósïgrʼ†–¿ñ “÷ ä'&Ò5¼”½›sj `aå[ñbjox|ÝC XñéK¼ôÀ[ø¿?óLÅ,zýQ>̼„ž»Ö^X÷Û 6«»ªçUûj|–G“¸X×:þ±7\çñöÜ\²%8Ð^ñ©-ÐÐ\²rí8›O[— í[î¾îÛc«y4¥Ïø»ëÀnsá J­3j$¾¾¾üïÃ*\~ݸ±Œ‘ŒÙl®²®ÊyT¿{Ú ½ðq>jù ½ý)OO˜A£¹áÊ iÕèx¿s:aû0®’Ï—å·™µŠe%pa—@èÚ=–¯fï•ñTÃGþ§@Ѱ\5f4>>>¼÷Á‡.ÿǵã¸jô¨##¶g†ó”/WµÍ›ÖýÓ§MÙ_—ökË;íeœ( sÈJ¯Ž DúÁ¿ Ý"ªQ½Kå D·=>±4n`ÚLý†=™@óS×¹ìq>Hø…Oþ÷9ÿŠVƒ®áÖk/¥mðiŽ!f.dÖšVŒv þ@`W J`ìÒµŒŠ¥Q•m0Ñnड़×à|.êò&‹,—sÓ€D @øEýh÷ÞÇüµŸ“v Pð;Óú1âõëéÓ´lL¥U÷#“¼-bú/ž\ñâMôkj‚pË­lXþ3ÝÀy=—0kqɯþ‹¾ñ¹xÐ.¾›¶¼šÏ«öÕâYÕÖ˜pV“ŸT4iÒ™OÞÁP"«y€9f8“']ESÀà郿¯[ña›•&š’3—¹ à”PáJ˜8S–"Œ1¸í¥ ¹fÓÏ|õùלñë·ï'¿ØLÁ$Tún Q«K¸óÅ\¹þ¦5{oYÄM/=ÃȦ•l##“tç^¿n S<ä´[!º#F.µÁHXX0Î}e‡Ú þ¡„ùذU´þ4öy´dTóSа/{Œ­In]îóΣ5ÛÀÊýéeeiIr‹JvE5žWm«ñEÙYUMÌ,Wæxáã¿ûÄÒ,üÛv2¸ñ©w.uîÙÁv[SÆD8û½¢ºœNÀèÓjÁ 8KK()Ò×½†Ìl.æò!ƒã¡âºqc5|ÅÅÅÕ®ç¼n]+yv훞Ó^‚¹Ð€_Ë ¸õ¹>´þÏx^ÿa Coë†ñHOsZqðàÉ/›¢#³ Žn¯€•«¶Cú6î¿þûÖ\¾:Q1‘'o¹F핺a±˜>l(pô: ô}ËÁàGߦ㊹|óÃ÷­F㼉ì<„Û;õ%ñ™[xã›Õ ¿·gÅguøàÑ—û¾½Ÿ>5¼Æm¨§§Á€¡¢í: 'íCÙ#ØØG> +*_ÕóªnœåqŽÉ8›3tD"·ÍšÇî¤ÑÄ—?ÃYÀß- tðýôñ†ê½Æœ8½-ŸEÌf3—|ì”·‘ǹ<2±bÕztïzÊã5û¢çÄnµPl…ˆ˜ ¬¬XpB׬¤^çÑC‡Ö°|k(WNþ„[Û}e;XõÚXX±šìˇpò•,ŽlZ‡<¨’ ÉW ¥´´ldv̨‘”””Ôʶêþ‡+|ˆí1‚‰=†síœÇùÇdzØ|É-t8CåŠ7®ekÜEÁ0íYŘîá÷g°º²zÍ+xã±×ùê·µlKË!/k«f¿Æ+s¬\pQÒ±0 mcsa1y9‡±ôcÄE¥Ìšú>‹÷Æj+"3u)¿m*p½ ® @rŸf¾=“Íyì–ƒìY»’m‡€àŒ¼ÀÌo|ÄòôbJ‹3XúÁ;Ì3fL??éÏОÌ~çKÖd™±•ºvÛñC­U<¯ºPãC™Y™.RëðNç ç[Ø,!\òÄdš~÷1ßÌú€oöàÙœV]®åµ‡ûl>D©£êºŽþæ<©~9;T÷ª€éÞ5©Â7ÔêŸÎß„.71Þü˜™Mßðf¸ä‘çÙÞË‘xtâdEõ_ffÕªM„öMsëñB­{Ò'à'V¬:Èà‹ƒYúÆLY àÀnµÃ³7ò“èx=ÞÛŠÏ3‘úd6×ΨDyv»£Ñ£Ú!Á`0P â¶‚¬˜ó9“§frÐâIh|Wn›8‚fg°œG÷q<8to>r3Óý›ÐmP/z†ÿXIÅ1têhdÞ÷ï3+#ëØëöâŸcLã3Â{¦ÿœwxôÆDµÅãå¼[ŸcÂGïòÉã·òüaci?<š¹ØWù3`â³~ï=&Müšl‹‰ÆMÚ0â¶n´2ÑûŽÿr×ïñÁCãÉ( ®Ýù<úü5tðࢠ²÷¹WxâÆéC¢iß» Q¦£'ŽzŸöyÕŘ…!##Ý¥ÏßµkW“˜ØšÌ¬,"#ª3Å·Œ‡á>f²òŠ+èúF¼ýñ÷ñÆËÓˆÓnÅZj¦°ÐLE×#©¨.ƒo‘þVrr OL$ç´•«×r^·$RS·‘”Tv¶ÇÚµ«éСSõ*0xàmòÅä퉇‡œ8lV,%ŘKF#¦ P|¬y˜OîÁžø‡c(Ê¡°Ô€O`(~ŽCä|s'/Bƒ0çs¨Äw@GŽ¥ †ãÙZHþa‹‚ñ9jÓ¦ ÇúéÉfΜNïÞ牗Wõ.ÆgµZ9pà+W.#9yä™lª4PVs _SÍç,Ô’_z»ìGõËØ sI/¬l©Ka–J—W]—³8ŸôêÏã“sLÅ}±šÔi£Ô|˜ÒÓNݰSr(›Š¿ŸZ)ÊÏ>¶MËá*ž÷_Ja^Îñ¿ sÈ«^ åo¢I“flÛ¶™¢¢B¼¼*¼,Ò)l6»wï iÓ*Ç äáå{òµp†_)3+;ëÌLÌqS÷®]¨(<ÔÅae‘3©U«VlÛ¶-[6VûL'oobccILl]Ë­9½Ï¡ˆ‹©›‰@"UXµf-Ý»VtÛfõO9»ѦM[âã[`?ñÚï•2˜L¦jßî\¤¶Ô0P8()±Ð°Oo’¿‹²Yî§öÅ{>¿H% Vyî„HƒSãЬì,šÄé’Rÿº%uÖh™ˆH=«q ˆÑ!iV¯]O·¤ÎõÝ ‘¿µ ‡Ã‰ÕjÓ²4N§³Â¾¨Cr""u§Æ#Ù99âïïw¦Û$RmEEÅtîØ¡ÂÑ2  ‰ˆÔ—…‡‡'v»•øfMðòò`Óæ-”ZKéЮ-ÛSwžñßwîÚ¹¤„6­[±gÏÞsî÷– dddPXTtÎýžMÁ¡C´ˆoNnn^­ün6—Ð2¡^^'œ·ïáá‰ÍfÅÓ³zçò‹Ô›ÍZíëKˆœm\¾RæþýideeÚ??NHý+))!33èèXbcËyy¹DDDpêlEêZq±™ýû÷q¬ŸŠœK\¡ˆŽŽ!77‡×aµž|ia‘ºçííM“&ÍNx“>ÚOW®\ª~* BEýTä\âò…ˆˆˆÈÉjtûr‘ò(DDDÄm """â6 q[.l•••Iff6›íL·GDDDê‰ÉäKHHQQÑ.—uù,ìì,, :tÄÇÇäòEDD¤a2›‹Ù¼y#&“/áá.•uùGNNíÚµW˜9Çøúúѱcg233].ër ()1ãë«+dŠˆˆœ‹||LX­¥.—Ó¤Lq›…ˆˆˆ¸MBDDDܦ@!"""nS ·)PˆˆˆˆÛ(DDDÄmõ(öΕ§žz‘9»]ºP§ˆˆˆ4@õ(’R‚¿¿•”­{ê§ 5þë›<ûÍ&DDDNT?"#…”¢.èßœ¢”Òê¥5à°cs(Nˆˆˆœ¬FwuWVJ Í{Ó¡•õó–r`0q1åV°å±iÁ<§ì'¯Ô—ð˜–ô½â2ÚU±ÌžÏ–…óøckyfoBbÛpþeÓ!ÌŠVòáËëh3q<½•mƺþKžû3ŠÛn¿€pR™ùßEøôåà¦ÒrÍCZp~òzÅXûÅóÌJu3yæ™ï0$\΃c“ðªûÝ'""ÒàÔC È#%%›¦Ýñ °’5u[Ó¹8æè­R­lŸý³s:3bìZ4²‘½·¿Àª—í˜ó!ßhˈk†“PDêÂé|÷álL†Ó²:Msd~¸ý¯èÅð`+)³>böÜU´½©Ic#jÁÞÍÈcWuÄPK{GDDälT÷‡<ò·²53šÄ–@‰‰a䥤}tyñ–n0ÑóŠKhw1-›l¨jÙF–¬3ÒýòÁ´ ÷ÃÛ7œö— %ɸå›ÌÕlœ71m»ŒŸ_8:ÆcÌÊ:Þ6©PŠ‚”2BšÑÄÏ‚Åb!¸Isür¶²5çÈ ¹9äcˆÕÇéö IDAT¬ ði—e“mlB³ØrcÆ8šÆANN^ÚꈯÝ޽F¥EDDþ>êøG!))iŸÆÏ/;aIJJýϧ³ò³(N·ì(É e?"""R{ê6Pm#e_ ½o¼‡AqGt²sÖË|–’BÁù}hF˜}7™¹Ð*ì¤ò§]֘Ǝm¤¥;i}$@8÷³o?D´ <8Ä¡C@#7žÃ‘P£ˆ"""r\ò0oOaO@;ÚÅ•Ô@|»6øîßJÊa  #=Úbù¼%ì;lÅa-"{×vöW±Ì¿#½:–²böÏlϳ`³ä³í§¹¬1t§O{0ETÈŽ©’µk˶º6;Âßß2÷±·ÄBá!3Ž3·kDDDÎju8Baa{ÊnÚõ#î¤%Æøv´ö]CJJ!=Ï  }òõ˜çÏã‡wQ`ó&¨q½†&ëg:Í2oZ_ñ/†þ<Oæ[›/aMÚ3æ_ÐÔ Ž~ÉýÈž=ƒ7ÖyÕœö-ãÍ­þ3jÛv+çòÅäí7ëË•×ô ñÜC"""g+CFFºKWjZ»v5ƒ­­öˆˆˆH=›?IIÝ\*£›ƒ‰ˆˆˆÛ(DDDÄm """â6 q›…ˆˆˆ¸MBDDDܦ@!"""nS ·¹(¼¼¼±XJj£-"""RÏ,–|||\.çr ˆŒŒdóæMº¼1i¸ÌæbÖ¯_Gdd”Ëe]¾ô6@vv999””˜]Þ ˆˆˆ4L^^ÞDDDérÙ ‘ò4)SDDDܦ@!"""nS ·)PˆˆˆˆÛ """5V¿‡<ÌÅ@T³hùxâÓ(Ž„ÿª—UåàzVÿÐ.Dùzâœ@ߤh¤î¤øØJ>tœL×f!ø¡Ÿº˜ÄËÆ1ªK†Ó.«‚ɄɨŽä‡GӦʕEDDÄ] à;º¡­úpÅuwpûÅÁlýe9ûªZæá‡8t¨’*CÂc?iéκx"""{õ(ÙìܺŸ‹»9Ÿ¬¼bœ~~øVµÌADP!;6¦RP\HÖ® ,Ûš}¼^Szu¶±rö¤ä˜±ÛK(8°•M{ŠêçyŠˆˆœãêù,O·Œ8ú%÷#{ö ÞXçA`TsÚ·Œ#4÷hÅž´r=—ÿ2_?{Å|ƒÂhÒ;”ͪ9±SDDDªÍ‘áÚqµkW3xðÐÚjˆˆˆÔ³ùóç”ÔÍ¥2 `…ˆˆˆœí(DDDÄm """â6 q›…ˆˆˆ¸MBDDDܦ@!"""nS ·¹(¼¼¼±XJj£-"""RÏ,–|||\.çr ˆŒŒdóæMº¼1i¸ÌæbÖ¯_Gdd”Ëe]¾ô6@vv999””˜]Þ ˆˆˆ4L^^ÞDDDérÙ ‘ò4)SDDDܦ@!"""nS ·)PˆˆˆˆƯ̂҂LþÚ¼«Gý…‰ô_ß䃜þ<<¦†zk…ˆˆˆkÖ¬[ÇÜù?²cçN<==i˜È¨Ãi_çm©ã@‘FÊ6]®J&éès &¢IëºmÆÉvl—ni"""R¯¾žþ-3øáØß‹…5ëÖ±~ãFn»åfúôêU§í©ã@á·—…ìœÃXùj%X6o>«vfRhlDÓŽ2ä¢6İå±iÁ<§ì'¯Ô—ð˜–ô½â2Ú¥2ó…uÄ_Ó”]?.c{v$—ß5ì•ÕgeíÏ3+ÕÌä™g¾Ãp9ŽM«.v‡ˆˆH ¬Y·Ž™?ü€—§'WŽÍù}zãéåÅo¿/bÚ7ß0åÍ·˜òæ[–‰Žæ•ž?ãmªã@GÏ-øßÜ÷ø8ç|ú÷N">øäî"Ö~û1ËM—qÕíµìaÁ—ÓøÆïVÆ÷ ¬lŸý³s:3bìZ4²‘½·¿£ùĶ•¹s¼<ä óÁÇ«ˆµ_W^_ÒØÇˆZ0…wsòØUuÈCDD¼¹óæpåèÑ\>ä²cýýóiÓ*-Û®mÛZiS ¡ÝÆrGÔZ~ýñW>{ýwbº^À¥t#ÎÿÈGùÁõ¬ÜGÿw!Êø&Ð7)šWSvRÜ7 ¿â ,Ý`¢ç-—Ð:¼¬HLË rÛð¡óàdº6;òçÁ%§¯¯îž¼ˆˆÈ±s÷nÎïÛ‡'žùƒ'}( åCÆQÿ}ñ%6lÚDûvçD 0àÛ•¡7t¢ïîµ,]ôMÙÈÅ7þ“^áFÈÏ'ŸÝÌ~åYæ)átØ!4ž"À/7‡c ½#+«ßˆ±üüΪꫥg)""R[ަ;  †Ç×Í%%¬]»îØß6»­)) †se„âÄMÇŸÇeñíˆþòuæý™JÏ­1˜L˜ŒíH~x4m*:þàtâÒôɪê9Ë´hÑ‚Í[¶ðÇ’%ÇF&Žš=w^¥‡<šÄÅxš9Œnh~ð§q˜6‹;@Haì'-½’ØF˜=“ÌÜjV_U}G¹TDDDêÉÐÁƒøfú·Ìš3‡üüƒ2kî\¦}óM¥å:uìXkmªÛŠÒmÌû:… ÎhN#¯2·/fþJ;Fµ,kŒ©½:/à›Ù?7r‰! 3w³ÏÚ”Íü! #=Ú-dÞ¼%4O>XS)¹ûöSÕŠØŠŽ_TUàïï›ö±·¤5Køù6„¤%""R¡¤.‘<Œ™ßÿÀ_}Í_}}l™‡‡wÞöçúi£a4of`õ²Y™"‡‰F‘Íé4æzú¶:š‘Gv­3‹e3–aº`]B«¨Ò•uEN£dÁöêÊc¼ü ‹mËE׎ç_½¢jöMÂÝþ™õwܰœAŸý—aÁ5i€œýJØõó—|ùûFRRÓ(ô %&¾—\u-ÃÛÕwãÄM¡pSâ¸W™þågLÿìm^¼c8]XʳfZjiÙ %»Y4kK÷Ùª®ì¤uS?»ƒËŸ_„£Û/ç°èd&}ùÓ¿ø„/ßù/÷t2ÿ…Wù!³†õ¹Ò—EN‘Íï“îåî/öÓìâëxlòT¦>q;£Ú±ÚMuÒ½§Ö.P¸ÉÓ@P` HPp8-:w¦Ùä»yê½ù\øâ0"|{òÀG=«WÙÉëÚm”Útï6©! jDèèq šw/ë¶Xéãz}®ôe‘“üþ>“×µàÁ)÷л‘áÈ£Ä&t¬»Fè=µV)Pœqô¼f 7Íeîîa\¿–—GO¡Ñ³0¾5P¸…/^ÿsÖg`ˆJ m«ÒâòŸehàÑuߤɗc™¼Ú¼Êä×0$ÝÆÌ'’óÛ‡LùêOR2Íx‡ÄÐfèm<9²õý´å,`ÄhtbµÙËþ,JeÆ;ï3{õ_ä{†Ó~à8î¼®eGëVñÂU éòD;Ö¾÷=Ë÷Ås×g—±úÚr}ÙšÁŸ¾Ç—KRØ_èGt«\}Ë?ë]V¿yß½ù.?¬ÚÍAß&tíÀÁzzæRßö2óË´¸òÝra¢§ëSçrϵ èóÁ+ŒŽ([½dÁöM<ï½=Žf¬â…1ßàuK2­`KÚ!<¢»põ„»™óŸ¬è=õbL.¿悺P9ë(PÔ†ÈtŽü€}i6ˆ/¿à0?OzŠéæá<òÊ¥4-Ýú?¿c}éɘüä >¾•Û÷]ÃÜG”›:8W_YJø]ònŸfí"¥ BaBªàÄn)à¯E3X˜Ã¥-ý€æ¿øßù牷ûS¼™ž~ŽÿMfʨزbÖ%L}ÓÄÿÝú 7ÇúáoÚÉêcuZXùÖC¼˜Ú›Ÿ@÷V|ú/=ðþïOàÝJ§ïSÕÙŽ};r1öŽaÜQÊâ©ðÚ[óè;iDÅï©5z¸»3Î]šCQ+B u’›“âÃù0oe(É7_C·¸PÂ[$qÉ%«nµ…‡9ä %¡c‘þÞøG´¡[¢f·I%Ò¾füåÉ º|8—ú'w|ðmnº›«âÌ…ÌZÓŠ±·_DB 7¾‘I\5(m+×Rp¬.C:DÄ I-bú/ž\qûMôk„o`Ür+—zþÆÌE‡¡àf- ùöÑ7¾1ã:qñ .„×õ>†!+“ gcÂO—'ªêSÕb"±ÏEôHŒ¤Q£&\< #{ö°·²ÕÝ}È 4BQ+’Ÿo ,,H;þpúöZ0ªy «Ȩ^ó˜2q[ eäð‹éªB©Dt2“&¡)`ðð!ÀÏ›cƒÍ™¤;7ðúuc˜zä!§Ý Ñ94ÀˆGeÃ_û÷²ÇØšäÖ従x´¦cX¹?¤±–$·¨•g&g›Æá„³˜Ü< ¶’uªêS5àJ-ke+¸û:èÓ¨6ämesVb½N]ætàp§9ŒX)Cƒ}›Ž+æòÍßóÈÍ3éqË<|ILª“s\ùI™' ð'À£/÷}{?}jÒyœ†“ú¡ì?ƒììN'Κöu9·ø6§EÔ6n>È5±•ŒªVÕ§jƒ»¯9yœqŬÿj[[ fpÂI‹b›ÐÔ°‹í»\˜eìtœtŠ“±=F0ñ?oòþ¿"Xüñ,6»ßhù»‰Œ!ŽT¶ì¨áŒ÷˜X𨷳eg¹òŽT¶l‡æMc 6–&¸Ø×åÖ‚Wubó´ÏXSTÉ*Uõ)OO<É%'×ͦ”Ou÷u 'P p“Ýb¦¨¨˜¢Â<önYÆw¯?Ì£¿ù2öæ¡Äœ¼r£Œhfö;_²&ËŒ­ô ÛV§PÙë#88þÚÆæÂbòrc³ïcÕ’ídÙ°Î`÷C؃ ¬åç(ç €~Œ¸¨”YSßgñ¾ÃXmEd¦.å·MU—ÈÈ ÌüðÆG,O/¦´8ƒ¥¼Ã<ã`Æôóƒþ íYP®¯ºv[¥}]Î}aßÌ­6ðÔÄùzñ&vg呹w+|ûßn*­ºO4#¾q>+[Mæ¡|þZ÷3–îs© §¼§ºû:臛¶v#>ð$ ²‰­ºrÿäkè]ÁáLô¹ãYÆ¿ýSïþ<0Úµ©ô!¼÷`úÏy‡Go\ATûQ<~GcVÌùœÉS39hñ$4¾+·MA³Ú{zrÎòæ¼[ŸcÂGïòÉã·òüaci?<šUã(…‰Þwü—»>xOFiqíÎçÑ篡ƒ@Mx”½Ï½Â7NÇMûÞmˆ2éÄÑ¿-C—<8™fó?gÚìÿñý®ýz›Ð•AmÍ@£*úTk®™8†=oLâ¦4ŽïÈ€n­‰M«b»åœòžúøP7_Rž!##]c=õéÀtn½yþüC4Ô ç «¹ƒ¯Iß^DÎqz×·‚z…Pß ©^¾:q_äï@s(êÚÞ?ùfáfö¶á0àçïcNJ¢­ÆÖDDä,¦Š:f±[H_ô!}|€\‹‰èöñøí9ßYDDäì¤9"""â¶Pdee’™™Í¦ÛKý3™| !**ú„ÇÕO¥!©¬Ÿ8°Ÿœœlìv{=µLä8oo‚ƒƒ‰s¹¬Ë#ÙÙYX,:tèˆ&[Iý3›‹Ù¼y#&“/ááe·!T?•†¦¢~šž~‹ÅBBBK¼½u—©K ;w¦b2ù}ÊÕ”NËåI™999´k×^oÒÒ`øúúѱcg233=¦~* MEý4//-&¤Áðñ1Ѳe+rrr\.ër ()1ãëëçò†Dj“ «õø}àÕO¥!:¹Ÿ––Zz¥ÁñööÁf«ô–j•Òi£"""â6 q›…ˆˆˆ¸MBDDDܦ@!"""nS ·)PˆˆˆˆÛj5P8Òâ™^F÷ø0‚£é>|k]?µU¤ÖÚ2ƒ'Çö§c\!1mxãTV,¿†ß<Àˆ> DÄtä’ë'±´ ¾Z+"ÒpÕ^ ÈžËÍobI›»ùlE)?3åžKhéUk[q‘ƒÝ?þ@æù1mUÖ~Ì%»#ùž9Y#ÿ§;¹lÂ&ú¾°€­«>bLéT†z‹õÚn‘†§Ön_¾õÝG™Ñåeö<4ˆ@šÓ»mmM¤&Œt¾û#Þ:öwO¼s(ÏLø… ¥|ñüG4{l'÷õ‹šsó;/³ é¼¿úVžëf¨¿¦‹ˆ40µ4B±…¯¦maÐèáG„ÈÙ!}ï^lÓ çfüÑ‘!CÊÝ2ð.;³fm¬¯&Šˆ4Hµ(öð×_¤Í¸~mcjLB×dýšB! ’õ Ûæ>ɵ¯äsÛsãi °o/{=HhV~Å@"HKÛ_?íi j'P˜sÉ5ñirN[ÁÎÔe|ô|}å(^Þ⨕MŠÔØžWéNûaÿa]DO:…9˜›Kn@à)£lAAAÎÍU8)§v…oa¾~tý/.íGXdKú‡‡.ÜÈ´é[ke“"5Öìn–”’¾åÞ¸™.Æ”Ý@Xa…‡9|Òê‡&¨qc4¿XDä¸Z:äÑŒæÍ3Ù½Û\î±¢£HOO¯MЏÃàCx«ÞŒ{y*7E/cÖO9Ф)Mí»Øµ·üŠ…ìÜ™E“&Mê«¥"" R-Šv ÖŒE?ýŠåØc餤¢yóæµ³I‘3„¯É€··'4¾‚ço`Þ¼Ìã‹‹~fÞܾ͞þš("ÒÕÚu(ºÞt?æü›û¿OåPI.«ß¹“I2þš–µµIe2ã©Gøtq*Ùf¶Ã»Xðì=¼uàBF^ D3îÁ²óé›xmYYëùðÖûù­ÏÜй¾Û."Ò°ÔÞ…­âodÚ×ÿ$oò0c:2î3î™÷75­µ-ЏÆi$6¦„éw_A×&Á„Æäî?Zòô¼/¸áH? ¹t ó'µbá„þ$&]Ë^w1ë«hvúšEDþvjíÂV¡ýïã³_ï«ÍMˆÔœ!œžã_áûñ¯œf%O¯z…ï¯:Ý:""¢›ƒ‰ˆˆˆÛ(DDDÄm """â6 q›…ˆˆˆ¸MBDDDܦ@!"""nS ·¹(¼¼¼±XJj£-"5f±”àããsìoõSiˆNî§žž^”–ZNSB¤î•–Zðööv¹œË"22’Í›7QTTèòÆDjƒÙ\Ìúõ눌Œ:ö˜ú©44õÓÆ³k×NÌæâzl™ÈqK ©©ÛiÜ8Â岆ŒŒt§«…²³³ÈÉÉ¡¤Ä\õÊ"µÌËË›ˆˆ"""Ox\ýT’Êúizúòòò4R! ‚§§aaaÄÄĺ\¶FBDDD¤>&bcãNX¦}|fœnWE#""µ,??ŸN:c±”b6—ÔwsÎZF£‘V­Ú°fÍêS>ì´ÏŒÓíãª(PˆˆÔ2«µ§Ó‰Ãá¨ï¦œÕìv;N§»ÝvÊ2íã3ãtû¸*š”)"RôAwfœn?jŸ5Ý¡©N§¦«Õ6íãú¥@!"R'ôaWû´ë“…ˆHЗçÚ§}\¿(DDꀆãkŸöqýÒ¤Lq›F(DDꀾ=×>íãú¥@!"rV+aϢd+;v È'„¨&m0|4—µ ¬§6mäÍ›ÞÄëî·ß¾žšP_œ‡Ù<:sV¥’º÷ >Qñ$vèÇ•#{íut¥æ>s‹»½Â³CyÌÊÎÏòä¢Xîyf~còè@¿û ËJ<ñrìeÏ¡V Ÿð<}ü 7Ä¥òÉÇ¿’ €…5>Ç{;ã¹þ©wùæÃç¸+ùZ58ÄÂ7^`¾áR{çs¦½<ž¸o1y~F<õ©äi™±´káÅ©C¬MZÑ–}¤¥—8“ßx‹…Ù-¸lP¶³8L€…ˆHp:gö''—Lg!öÓ¬ç ,¾áž%Ì/" g/Ú•à@ö‘å˜hÕë|:Dùà°ÒûüNx¤¥³ßéÄyh)sþ `äcéÔÈF‘Ù“˜vÍs8qf/á—mwk_Âm‡1û$2jPKvlØLÁ‘m㬅ç|´îºÚÇ®üäæ’E(Á•ý{Ø Í%;×~ì9˜ý6Ÿætb`«Lûlæúl5÷ñé臈ÈÙ¨q8¬ 7ˆ¬|µC[çóÕÜålÞ•AÙL1!4+÷yá°•Pz䘽!0˜ [~Ùƒ¬,x$0<¬˜R{ÙrÛÑ¡œ\2ëyí_ÿ`ÊñŠ º-‡ 3ù<Ïa g5ùù@xËùä %"üø÷øCæHÆ?3‘Ë­Ó¹ý¾¯øþ’ÿoïÞC¤¬Â8Žßݹ¬³uv7]W]Í4#‰$JËÈRCkxY³IIDAT….˜‘YPEDIIdT*tƒ ³63$4/^òÀʼ…¡n«™—¶ugvÜç²syçô‡“»µ»^˜™6XÎyçÝ3ϾÏ{ž3ç½–¹uÅ=¼¹PB!"’}¾G‚s8£†6s 1Hý½\Âý[yóo©]ð$/?1‚*ï–ÍùŒéüFD—×&m0™±ÀX;eº¯L(-£Ìq+ϯy)V¦ÍËŽD°ÿ~G×ß“݇Â]K]u3GÂ̪*íÖmŽæ×ÔHz6&uÿSÌöFˆRÏãwlañÊíL[8Êü¾O¨ä!"Ò™áÌž{×®a´çCbi1ƒySÇPå)"M^üù‡ÔP›:Ʊž–ET¥Ö4²oW+~¿ïìχ/Áîàåõ¨.3ŠúûƲgý&Ž&þÝ仵ÛH̺‡[\Í%Î4Ñ2Lxèa&ýŠU»{ùcöJ(DDò ïëÜIJnžÏÓã²dÑ{¬ÛyˆãþÓ´žl⇯?cã¡®Áƒ)9ö›ú98ÎŽ•Øsn,=+Óˆ)»™ÙS򯯡‰ÆÓqRñ 'ÙÇáÁ¸oâÞéI¾ùøsvþq†D2‚ï·]ì8̜ǻ$Ɖ£-ÄÒé¼Õ÷ »î Aùí±À»ƒÅ¯ÊÖŸÐÜæã÷?òåÒ×Xá»gæŒ!Î|“‰³1“&îšÌ‚9Õ|ÿÅ:š’ZC!""½ÈÅt¼ÝáaòsK©ÛÖ@ÃöUl^ÞBÔYAÍè‰L×5~. ëßáÝ·^dƒg×ϸ…IÕ[Î]È2ë,Kt-ƒØ7>¹˜èòøpÑü 7Þac©dW–Áøù¯ólÃû¬|û%Þ [”z‡rÍ]C˜4®‹ÑÜ=o o,_ÄÂÓϱäÁ«úü³÷¤ % ̯,eäÚ¬^ÿ«OqŸëç±ì¥) Š…2ßÈé ø¹1Û1*g>ʬM¯Ò°u*¯Ì<Ϙÿ(«¥åÏËjVJD$ßöîÝÍØ±WçèìÎå”pátc™4v*N,&š°p—¤b€ˤHD;0v»pÒÍÀ!1§[ ý=EﬠÚ[DèT;q˧¼ÛI±e°S ¢¡ö³Óô–ƒ’² JKœ8Š iÛ& ÒžÙ•É1`ƒÊÝ à?s ¥–‹ÐÔÔÈĉ7ü£-·1¾E¸JË)u»p:Š0v’d"F8#e:ñx¯ $î#é,a¹¨¨òâˆú D »»UO1¾ÍPˆˆäAînž ‰hˆD/¥÷ŽP€ŽP—†p$ó"N{Kë?N„híºf¤ˆDèI ˆ…zê„d´_ž—x‚"#M<$>ÿ1‘¶–îq5 ‚­ýw/%""yñŸ¸ÚýÏ)Æ…¤„BD$ ]ß¿(Æ…¥„BD$ŒéßÛ*÷Šqa)¡ÉÝ=çžb\XJ(DDò@»ÜSŒ K …ˆH¤ÓºØåšb\XJ(DDò@wϹ§– ‘+.v`ÛIŠ‹õ/7[¶ÂétvkWŒûNo1¾E^D$Ç*++inþ¯· ÇSèáô[œ:õ'55µÝúã¾q¾_ˆ ‘«©F[›Ÿýû÷‘Löí6Ô——ËňuÔÖïÖ§÷óÅøBô,Éš_."""YSB!"""YSB!"""YSB!"""YSB!"""YSB!"""YSB!"""YSB!"""YSB!"""YSB!"""YSB!"""Yû Õ8Q|‘¸ðKIEND®B`‚OTPClient-2.4.6/data/screenshots/settings.png000066400000000000000000000501401414446074000211470ustar00rootroot00000000000000‰PNG  IHDRxWÂMsBIT|dˆtEXtSoftwaregnome-screenshotï¿> IDATxœìÝw|M÷ÿÀñ×Inö–E„ˆÄˆ-!D(ÅOmbµªU³(ZmµZ|[viQ¥ZÚRJí¶TÕ B#V"$!‘%óŽóû#AÜD„›ñyzœÇ#ÎçŒ÷÷}>çs–Œ|2À£aÆ6mÚ4ÓÓÓ³¦R©T ‚ð$IB«Õj¯]»ví7Þøß®]»þ®’ŒüÄÓð·ß~›×§OŸîN‡N§3hЂ T~2™ ™L†\.G©T²aÆ]/¾øâ;@”¨óÛo¿-îÕ«W÷¼¼UJïøL¥/“œÏ`—»›WMrR¶Oc–6]™»ÉŸLSk,ŸÆôƒ èøM|óùÇacc@Zz:ïÏœE䉓Ù¿¯LÓɧJÑ¢Ó2ùCUZ#ì¬ïÿ7ó"[–/gsÈ9âµ¶Ôiù'¢©MÛßéÁg¡ùƒmyë9¶´Ì4íbæ=Òÿ]þýHÁû=?åpË©ü5¿ê½¼ýüçÜê2ϤB£È1u¥EïÉÌx¹ V€:þ ˯åÀ™k¤(ñöoyäb:/ç×1µˆÞ¹‚¥s:.ÌmqöäõÙh÷T²§P’:üwê4“Þ|‹% æ#“Éxã­·‰¾x‘Úîîež®âý÷ߟ]~a †e…]n;ŽâЮ}œJÌÅȾ&’QßËüc šõîG[*‘îdûgzw©‡•¹-&)QœŽ—Ñ´ß^êæO@«&4óö@UDÿ†®Éì]{k®mÞÍcÝeö¬=À‰ØX´ÎMlïƒt1”Ð#‘Hþýñ³?Ï×ãÞfýÙ,Z÷ [3’Ãÿ!4^•oOšlæÕ¶pÉØ‡¾Á=ð÷´C“dL“Þ­p·ÃD`»9BLì5ކ†²û¯¿¸xé.ÎÎ,ž?K ‹2MWÔ|ª9ƒ¾à;ûu,Yù¡ÛWºýGjµÌ„qCèPKÿmbÍÉ\ûOåãÑMÓ›˜þÌ;úÒ»Ó' /Ïü•_ŽKÔmß—-ïN»nÑýÕŠ¥Áp–,€hs‰~ßDqúÌmÈÜÅŽ`Þa+>z ÿ…t}k;™11$^ãõ—bò4W—P*5Yºh!§LåÒå+8;9ñÕ‚y¸8;—yº"ùT523<»ŒaQ‡þü·7ÛvìdÏá™~ú}ÿ1­®^%`óÚo.”‘Ò“û‡###LŒŸìÐ ’OUeì@“®ÃiÒ5˜ÞKÇ2nÓvË"ÈÂ9P·ÿl¦j§šO)–‚Ó%I’P*ów9yqOö8õdáW6~¿–ÍÿždçÊìùk‹¿GSQ 2ˆäÛ·™4õ-®ÆÄÜk㉉eÒ›o±tÑìíìÊ4]q©½JI%úT,w ¿WÊ#ãN.`Œ•¥Fu<¨ Ä'iðjÚ”æ÷º†¸Ü»£PÈ\îdj˜zqý‡YíÚ8N"§˜aŒj´`Ø» Ù´õfv²%/fœ*ó,…'ôÖ»ïÝKU‰Ò‡nÙzž¸ó\Ô©°qô¤c·® Ü‹ÆæÖtÿp)²ï–ñË‘½¬ ÓaëVºÞÜ‘Ø^Q󪥤¤$ JzF¹¹¹œ>En^-›7+ñoÿÖ­‹8ŽN§+õßÇÂÂh×¶ ‡CŽ–úï¶þ~äääÑ©Óó¬_¿®R$…B‰5·nÝÒ;œ¨ùÕÒÆ¿ðê«c ÀÇÇ ssC‡T¤ŒŒ;D;G¿Ö|ÿý·´odèJ->þ-Z´*¶\48 Õ–$IÔ¨Q£Â&KK lml¨Š¯¾ÉG¨Ö4¡C(‘µµ•¡Cx*Dòªµø„C‡P¢‹—.:„§B$¡Z«ãQÛÐ!”ÈÑÁÁÐ!<•ójWN {×­eóáó\KÍCeëˆ{ƒ¶ |im]@$óÎÅøÃŸy£©¡ƒ5)“¿ÿÄæ(Î]MÁÄÕ‹Í;3|h 5®°jô6Ä7w†;±~cؽ>2#sìÝÐù¥Ñ¼Úƹ ¹$rrr€ŠÝžbaaFE±,*aòÉâÈ×3Y|¥%¦Ì¡¹›Šì[W9q0Š#…¡ƒ{ê¢×MdjÜ ¶MïPü_Ç®9³øöfF Ç«uìȽ~ŽC[WñÆÛÑ|8g$Í-kóÒÂuìÓñ[?dÒ¬þ°+ù- r¤£ YïÒ‡ ‚q—thrR¹rà>ÿb!öË¿ ¯Ó3Yä§F’àF|u<< Š^—¯Äàâìò˜c©‰ÛÁ¯ûNq9.ÉÆ†íîÛŽZ¦@Ânf|¸¸‡Æj3~ã]õ”µ(ûr<¬ò%é[4–Æf=]\ñnîKÙ“X´¾-«F7ÀÄ“‚â;*(L±²´änófŽP˜`y·Ÿ•5v_¤ëî·8•K_'“‡g]ÉHÔñp§¢×*\œx¼uÄîšÏÇ[â±oÜš€.–ho_&âÀ:f‰ç½YñÒ©Ñ5ýúPëþ]ÈÎ΀¾²rTù’ÌSU±q·‘šÚSüÍÛj.ýµŒ÷V†q.>“š­xyÊdzÔ1.(NààÚ•ürä×ï˜áRß!cGÐÑMó^b£×|V½T§`Ø£|2ä3†­`É€‚-pk“Fâ¹Õ_Òϱð|Ãù"x#æCê‘x ”¨¸t.Í2y*ý½TùƒdF³yÅ*vD\%EéH£Ž/2ixœ”j¢VOfZxõ2^J ã(ŸŒ[Lö«óih"‹"´ÀBzôYŒ¬ùël™ÝÕË}™ß7ž¦Éà©÷Ï] Gz¼Ø•_§ÿÆ—>à9Ó²l9r¹„Z£-ËÈŠ$Iܹ“Yá/c›˜?^Œ·±vG 6cx³o},Œä UÓ±Ñfæ®ü‡þjÇœæùƒ:øt sëûuh…¨§¬UÂÓvoú mÊÅoßæå;‰L,îëUzMü”5«¾`õq–~÷7©ä¶ì=¾ŒtbèÌe¬_9“¡Î§˜÷Î2ÂrÌð÷oD\Xw›Ct§#ˆP˹x<’ô‚~i\¨ëGÇ"f­½ÌÅäºôš8‡Õ«çñŠËYV,Û]°MÓøãËù]ó<3–ÿÈÏ_ŽÄ%|>s¶^Œhøâëü_îï,ÜtÙ„®ú–Ð:#˜ÜÅ•î³7³d  øOe×ÖÍì~$ñÙW¹œà†o#ë"׊» ¸Êå‡ëÔ%’Ðæ¦riÏfö%¸â]ïáÌVùH$Þ¼…$Q¡»ËWbxœÜ£Ž>C´Ú€çãheŽ™©)fV¸4žöî:®½@ÖÝ*TªûÝ-úÊÊAå«ù Ãõÿf²Ús/?~÷ïÞ@ý®C÷R7ØÎ¥ÆxwèN€Oþÿº6`ÅšX®6騴WI¯/Gè.¬;ŽÿŽÍ`Ë‘|ê×ïe!„ÝHo;ˆ ‹À¹[W”{O™û™ä~†Úþ¯Qô™¸ ¯€Îøyåÿ¯K/KÆ 8%îcûñú [ßOsÀ²9ƒ»z2,$’´nX›4fäøN¼öÉ×ülS?93êën•ãŠtë&7±ÃÞ®¸Õgƒ]‰‰:ð*ű'îWF÷üõޖÊà:¥ ¨â’$‰zžu+|ÍÇÅÙù±bL¾™Œ„öNFœÈŒ\pµW@\2É?ýßO`Ä÷¸õäóÙ/ÜÛ§õ••‡J˜|dXמI_1èä^6mØÄ[c0jîÇôw/z‘ÌííPiÔh®Ç#÷¦w¡ŸÂ_»]ýhSç{B#îÐûù$BÃð›ÞEÔ4ÂOi jö¡'ìh;Ô½TÑÛÙa¥IA H¼ô_ fiA¹¤Uƒ‹/©€5`Þê&´™ÀÇK¯ÒhÔbz:=Æ“Ìö8pŒ”T ¨st)…Û©v8:”²Ò{·Á)L°03Ösª[ÙH¤¥¥Qñb_Ê611âqÚ|¬­­‘‘LR2홤¦i‘ÙÛaWP‡ ]Ǽ.–…†ÖWV*iò¹Ë§¦=˜Ð¤^åëô}Ë¿äsI @öÐH–ÿO&œiãçÊ/'ÈkœHXn+&ÕuCÑÊŠÿ?Î(‚ æx–!d s,í˜öÛÛû+6ÂÜÜÈF&ÌŸº¹;×9{î8?ú´¶tù<ç5î ­UÊénp®b$Iâæ­[Ôó¬Øk^¹ƒËc´öªêÕ£¶"Šý;NÒmTSî><¢ŽÝÇ+ x@ÖWV*_òÉåë¿bÃþHÎÇ%qûf á;3§šN›—.;Ût¤§l¶}½†cñYäe%²z»åÝ ,hH­×“Öl¹B«Ö‘²­h}{?È¢òm ‹@úuÎcûÒU¾–Z“IbtûO§å—k®ðóÒ]˜ψ!cxÍçß}³ÛwC·±«ç9s'‹ÛIõd’s±Œ´ý‡wß]ÎÎðóÄݺÉåÿ±îã·ù:>)/6-÷£Xå$‘––N~U¸âv&&Æ<Îi öÏÔ`?3¢ØóûVþŒ¼…MëLÔ‹Šq?\%<ír¥‰¯œÝ[W±=á&i:sk7¦ËôO ö+ú Ï£T´øo¬^Éê÷F“gA͆íùàó¡4¾{9QæCÛÖÛþöÅ¿iAO¥/~Í3Ùц6¾e݀ƴ÷)“×|Ë3Çñy† K7õu!¨±×¶|ÍoR/ô¯ è1á%öLXÍ7[òA 5Žm»Óaç >x-çF˜9ó9ƒRÖ¦ßÇ ©ýÛ:¶¬_Ìš˜TT.žx7}‘Åïv¢¶È<@þi×­¤[Ô󬨭çWcb îõ)=¥™#>àî—‡Z«C&W 46ÅÜÌ€SÞý,…eõ}eåH¼ÏG¨–6nü…!C†sóÖ-j8–úZ¢A\¹CÚ¬_¿V¼ÏGª‰ôôŠÚ¥R=æiW%!’Pmå_íJB’¤ Ý]¹[áïE*‹JØæ#å#ÿjWǺ’dÎNN>Ʋ5¡Ë¿ÉÐЧU%_í2B§«üÏÒ=LÔ|„jK’t¤¤¦‘‘q ‹ŠyãÓÌL®ßˆÇÙ©†¡C)w"ùÕ’\®àæÍ›Ô÷òÄÊÊòÞ§mÚúûr,€Ö-[q¹\AËæMëïfMsüÄILŒiÔ°A‰ׯïÅ©Óg035Åӳ}¼ëãSß‹›7obdTΕ?E:…Bÿí(âR»P-íßÿ7r¹‚ZµÜ166.õxO«áWß—=sss¹zõ2&&&Ô­[ï©Ì¿tíy·ÀÀÑÓxî:Ž$jî&ÝäèoÛ8qûIæÎý‡óõéâÊ#™7p_|’y”³‡—;ã4kgM xà†L\ÅñÜòX/¥˜o•gøÏâ<^WµôR»×‹ ù¬§#hsHŠ9Oø_¿ðÉäÿþñ†xCÎl߉e½4³«ºwD¯›ÈÔ¸Al›Þ!ÿhðÐrÇl_ÁÚD_>Yö M-d(t'˜_륤ùVuU° ·5ña;øuß).Ç¥ Ù¸àѰÁ}ÛQËHØÍŒ·÷ÐXmÆ/c¼«ž²å¡A÷0¥Ê+KKÀ+Gê6mJíESùßÊ?xîËÞÔ0õç5þ† ñÙÐjÈÓú%<´Ü·’“1oèGkÇ»//§õRÂ|«¾ªš}tÄîšÏÇ[â±oÜš€.–ho_&âÀ:f‰ç½YñÒ©Ñ5ýúPëþ]ÈÎ΀¾²rTÁo–øíç¨]ìºÒ›WêD2oà¬?YÍho qû¿gɆCœKÌÆØÖŸ^gvÿú(H%dÕBÖºB|Z.*‡zŸÈÄ@òW]Ñ|Ãôeaœ»©Ã±~{^ž<’ÀÅ|W(3šÍ+V±#â*)JGu|‘IÃÛàTäÚ ç‹à˜©GâP¢âÒQ¸4cÈä©ô÷*Hê®]É/GÎqýŽ.õý2vÝtü1{‹"´ÀBzôYŒ¬ùël™mÏÒ‚ånºgsþÎ"—/èXu‡°â³Züpo½yñìÿq%BÎs#Û’Ú^- ž8š@ÇâÖ‹-–0ßÑÞúâ6.ÅrëÛ^CU¼| ÀíC¬ÝƒMàÞì[ #9hÕtl´™¹+ÿᇿÚ1§yþ >èÜú~ë‹ÂHÔSVŽ*XòœÓÔi5×â4Pø“?©{X8?Ç7>àÛ€ÚXd^æ\Z‚Ù€¾¼ÛÇw[9 {æñÆÂ54iõA¦:Ô&OêÏÛ¶é]3—Ïf›Së›ax<@|ù!¿›fÖò@\³Î°ú£O™cµˆ%ÜŠŽY{™‹É]6±7Ójäqxé /ÛM»ýp"—°eïñet[Þ™9™V¶i„®ËÜw–a¾j2ÝgoÆó‡qL¸6”]4ÂEÞ›´ßĘ) ãSÞfó¤‚=¦P9äpìëé,ºÖ‘wfM¡…c±g’°rп^Jš/%ÄÝZUÂrëÝ^CUÍ=êè3D«Ýèó\c­Œ À¦˜6žöîÇØvöYww%… •ª˜¦_}eå ^í²ÅÎN"9)åÁÞw2H—ìðôõÄÉÜó>´ô²)(”áÒ 9uÌP*TÔì€O^,1‰wGVѰSÚù8cïTŸ^L“ë{ùë\³OÜÇöãõ6¡3ž–Ƙ:5gpWO·E’VlÌ*¼:ãç儵u-ºù¢ˆ‰! ý›ö*é5aîV˜ZÖ"hì8º)÷³å@Ư-ÒþeÓ>3úMz…w+T¦Ôo僳¬4ëERÅ­g¹õn¯ŠA’¤JÕ•VòÍd$¬°wº›xòÉŒ\pµWÀíd’ úø~#FÏïfï$¾ÐðúÊÊCÅ«ùJJŠ {{(ÜäåÖ‘mv³dÊdÎv}þ}»Ð¸P£ès»ø~óAN^¸NJV6™Øà©ytêXÖÁÓ!™k7rÀ硲„Dâ¥ÿøjx0K zIZ5¸ø’ X—b Œíì°Ò¤ ¸KŒÜ›>Þ…ò¼Â_»X–bŠz܈㚢<Š~zø±ÖKa%Æý¨–»„íU1Tͪµµ52’IJh§É$5M‹ÌÞ;Ò‡ÚuÌë>°7ê++mo€Ûg9s³Ý:Á”Õ ûËñ ÝÅÆm[™1f ~cgñþó®ÈwðÁŒ¸ŒÏŒW\±³bqðZ=3Ñ¡ÓSí¶0ÇBÑŽi¿½M@y¼½@ñà¤dùÿdåPñ”$$™Œ"ß\ðØë¥ðtïÆYØcÄ­o{•.‚§®ª¶ù¨êÕ£¶"Šý;NÒmTSÌ ú«c÷qàŠÞ^˜<Ô®#SbRh:úÊÊC;íÊâä†íœ­ÛîE~iÕ7¿~L™ó «^­Áá¶sÈ:Éٚѭ u\°6UêßÁS.r!¹µï^=’î'"'WjMÔÅrÚ1]ݨ¥½@Ô¥BÓÓEu<Ü]ï÷“t”é­2.®¸i®rùú£E¥Z/ÅÍ·´qëUôöª($©ru¥%s d@3™ÇV2kÑz¶îý‡¿­âsÿ ɹ;:ßß*Tª‚Îä¡ýC_Y90hòÑæf“™™EæÛÄFå÷¯Þçƒý¦ óìÞÚk„¹@b¦uFWn¤£µ²Ä0±±Fξ‹id§ÆppÕæ‚¼~WÑ'IÈÖ›z‰íßlä¼O/zÖ0A¥Ê&öÒ ²% ,é×9íKWqøZjM&‰Ñ!ì?]|‹^6éß)›m_¯áX|yY „¬^Ányw‚ó¿–iccWÏsæN·“2(ÍYÑ=¶Aô HbËò-œ¹‹67•˜È0Χ—¼^ôηqë¥g{U†¾ið)Ýd¨° aŸñL öÃ1#Š=¿oåÏÈ[Ø´ÈÔI=ñ±¨Íþ=íº°î ú­Ëé6^õ[ðö¢¡tp)âš^Ú BwþÄ¢¥‰¤æ*±«Ó‚×§ô£6@«™þ¾™1†MæµhÙµ þŽÙ³ÛÛ˜5þKâ³Í¨Ý´Ÿ~Ø'¼é5<€¿ŸÂ¸´øa¤­Ç}Êä5ßòãÌq|ž!ÃÒÁF}]jl]†ì¯¢íÄÏxcõJV¿7š„< j6lÏŸ¥qÁb:¶íN‡+øàµPœ `æÌÒÖ,Ì šò +W²`ʯÜÊUáPˇ~¯·Ä»„õ¢¾%Ç­—¾íUATÕÓ.¥™#>àî—‡Z«C&W 46ÅÜÌ$ÿŠ£SÞý,…eõ}eåH¼ÉP¨–6nü…!C†:ŒÇ²~ýZÚ·2t¥ƒ-Z[^ñœá™Ç]CÉG¨¶ªòiWe ’Pm‰ÜcX"ùÕ˜È>†$’PmI’Žü»M*Cª 1>‘|„jI.WpóæMœœœQ(*þÏàÆë•ócåO‘N§E¡Ð?QÅ_ë‚ðØÛÛsîÜY233166.õxO«‘Zß—=sss¹zõ2ŽŽ5žÊ¼Ë›V«!55-ÿ&V=Ä}>Bµ”žžNDDii)¨Õû{Xr¹SSS¬­m15U•<‚Éår,-­ñô,ò©{Dòª%I’ÈÎÎ&''­VkèpôR(¨T*ÌÌJñXK%"N»„jI&“affVå~ЕI{ª]„êB$A BÃæ‘ IDAT$A B$A B$A B$A B$A B$A BÜd(TK’$qýz·o'Wø;œ+…B‰­­ 5kºë}fM<^!TKׯǑ——G£F11©øÏKU&ÙÙ™DEÁÄD…›[Íb‡5¡ZJII¡iÓfäää••eèpª¹\Ž·w""ÂEò„‡©Õyèt:tº2}ªQÐC«Õ"IZ­þ/Љg¡Ú‰çé)ͺ5¡Ú_¯0,‘|„jL$CÉG¨¶DÅǰDòª-qÚeX¢ÁYƒ5¡Ú5êÞ5Ÿœö~7‡×_N¯~ƒ 9‘·æþDH¼!n·dÞÀa|u²´Ã‡óEÿá|}úiÆ$<,êû×é<Še§Äeú'Uk>Yùz&‹¯´d”94wS‘}ë*'F‘c¤ÿcgBÕðø5ŸË„…gcg«#4ü,c7¤ø'—*ŽK¦1ýF6L ¨Pµê›|¤ó9¦¥ëŒItoZ° 98áÑÀß°q וަ¶âµ±¹Ìÿ9‚ #â] ²B.¡–U¼ŸzÅ‹èY‘™bªÊ"6î6RSûâ`™Ñl^±ŠWIQ:Ò¨ã‹LÞ'%@*!«²æÐâÓrQ9Ô#pøD&º #œ/ï£Ù¬†D®ÜʱkuxcÝût’dzÿÇ•l9ÏlKj{µ$xâhÔ\úkï­ ã\|&&5[ñò”Éô¨SÜ5óˆþã¦/ ãÜMŽõÛóòä‘ÖÈãï9/³Ò~&¿Œ÷½·liÌbè¿þüôYlËwmVJ[ó‰ #±YÚ´Ê£ñ’M„^z‰ú…¿‹§NäÐ/kØv‰„lsjy6£ï˜´µ/©ì&G6üÀo¡Ñܸ£Â¹^+¼:„ö.Æöï9€ÿÒ9ôqÌŸMοsú»‹ãN$‹^ù³þžÜ<Îùø;(œ|0~<½êÊøûóQ|sB ,bà19²&¯±nzG*£´Õ7ùàM¿¡M™´ümÞ¹6€aýºÐÜÉä¡aÒøãËùÝ|4³–âšu†Õ}Ê«E,àXãЗwûxãn+'aÏ<ÞX¸†&­Þ#ÈPaé7*Æû˜1nf˜«r8¶p:‹®uäYShá˜Gì™$¬îÎOB£ªC¯‰ý˜îœÃß ÞcéwðÉÿQô‡gu¨M<žÔŸ·mÓ9ºf.ŸÍ6§Ö7ÃlÉÂïszœ/¾2€ :MãÀ)"ñ”Iaaq4y¡) ³ûÿ9\:y#@Ò_¹ú|u¥=3>A[»­ú„Ïf­Æ|É8šËQ¢Ä¸PK€ÌÈF?^#Œ´1Ĥ¿ÀðiÃhìªæàü7™»z/mæôâ…Ïÿ¤Å#;‚?~y^·R³¹½róÖm¬ýy½Þ50$x ƒö/¯Z¡NŸ1®ÿ7“Õs‡â~y#ïÍ䥻9›Z¨!1qÛ×gØ„ÎxZcêÔœÁ]=9IZÁ4\4§®ƒJ…ŠšðÉ‹%&ñîÌy~ôôh쌭&iÿ²iŸý&½B€»*Sê·òÁù^µËïÝ ðqÆÚƃn Ð^åZ±Ë ¢a§´óqÆÞ©>/¼>˜&×÷ò×90õkOëÌœ)ØÍ2ŽrðŒA"õÜ%IRé»ÄpŽ]­‡_SStZZ´®Éõclj½[žv˜í,ôæË4³V“‘¥Äµ¡öºÊÒ°u¿1ý¦Œ¢¥µš;j+üÇLä£Cì<œqïFÈãy°˜âÝ®M\ŒÑj,hÔ el¦»Ì¹ 2긻‚R‰’$’n?á2HR©£ÍÊÊO@#G¼|/ñ”wç®ê›|²Cùúïذ?’óqIܾCøŽÅÌß©¦Sçæ˜XÒ¯sÛ—®âðµ ÔšL£CØ:¿ÅÇÄÆUL8û.¦‘ÃÁU›‰Ð7OÛ ú$±eùÎÜÎE››JLdçÓ˺9DGœ$![Cnê%¶³‘ó>½èY¯ Ø¸%ýsÙ¿ìN7 ¤UYçSUI¥ê2ŽGpÚ>¶N‰$&&t7©Û¦VÑá„Ý–À²};$±í‡œKÉß¶×N':£„2‹ö ì’ÃŽU?ž‰:;°ŸÖð§¼'Ám•`îN]ÇÛ„ŠäVF ±§±ãXl¡ø‹Z–ûÙØØÂÕóœÍÌ"åvÚ–7++“Aú$ž;¥^OvúUãÓ.WšøÊÙ½uÛn’¦3DZvcºLÿ”`¿»5cZû”Ék¾åÇ™ãø!cåJLù•[¹*jùÐïõ–x—)1Øav{³ÆI|¶µ›vãÓ{ãt¯ÜˆÖAþäþ{ßam¹çA¥»ÔžMDÄ)ìQ[-=Ðþ¦ñö§½ÅnB#RèÞÅ¿7æñÚ·_±ìýß¹•§Â¾f}zlB= ¥ž2hòú¦}¿„µs¦²0Ïœš ;ñÑ‚AÔÕd‘'y0xÚ0®.ZÆäý ì=| òoHÍ ÎÔh 5DZ@$ÀÖÿÿè´û>}#Œ z1í­.¸•°Ôwîd<Æš,ñùªîÖ6&:NÏu³éfiè`*ŽÈȼ¼¼K1¤ 3;,µI$¦å=Tf‚³=ŠŒD’3µ 3ÂÌÚ #2 ­&Ì´Ûdª)¡L‰©•5*c2š¼l2Ò2È-h»‘›XakmޱBB«Î%;Lʹܾ™Ž6.6HÉ Ü ÏØ'{9iñ)ä(L±µ·A%סɻCÊíÌÒ_ÄxÑÑçiÞ¼e±åÕ¸æS=ÜUZï»@‹^3°0t(xªÝ°Dò©ÊbþaÏÕf m#ª=EÉǰDò©ÊjeõVCQqI’x-†!‰ä#T[¢æcX"ùÕ–H>†%’Pmét"ù’H>Bµ%Ú| K$¡ZR(”h4 ñÊܧA«Õbdd¤w‘|„jÉÞÞžëׯao™™¡Ã©Rrr²ILLÀÍ­–ÞáDòª%WnÞLääÉã¨ÕjC‡S¥›àî^7·šz‡Ïv ‚`Õ÷•‚ ”H>‚ „H>‚ „H>‚ „H>‚ „H>‚ „H>‚ „H>‚ „H>‚ „x¼B¨–´Z-þKrò-tºŠýt»‘‘SSs‘=½ÏÝ–¥R‰™™žž^zãWÕÒÁƒû166¡S§.XXTì×ë§¥¥òÏ?{uêÔ5t8%Òj5¤¥¥cjjFݺÅÇ+j>Bµ”””Ä AC‘ËåOísÀåÅÈȘNžgýúu•"ù(Jll¬¹uë–ÞáD›P-i4jLLT•âUª’$add„FSyž¾—Ë%žÎŠä#T[•!ñÜU™b--‘|A0‘|A0‘|A0ˆ'N>§¿Iמ/ñÕICÜ+É¼ÃøêdE›VuUÙ¶‡Tɺªå /µ_äÈÑ,lm´9Ť¦yœ[ ¢×MdjÜ ¶Mï ª`OX¿úUÁ6ÜBÔćíà×}§¸—‚dã‚GÃv÷mG-S a73>ÜFÜCcµ¿Œñ®zÊZ”_„O–|.åpjsFŒÌå«!œט†“}´ò4Uz0,±~KPU׎Ø]óùxK<ö[ÐÅííËDXǬ3ñ¼7k ^:5Z ¦_jÝÿÑ:;úÊÊÑ%Ÿ+GrÓ·/A¹ìY¾…#GÓЫ 0uo¾ô7«ç3°F~¯œ¿çÐ{cV.ÀÙÙÃX¡Ò£ÏbdÍ_gËì.¨Ô \»’_Žœãú3\êû1dì:º—.¨’ÆÏ‹gÿ+ÙržÙ–ÔöjIðÄÑ:>8MÌï¼=m3Öãç1ë¹ÖèôÎ'œ/‚7b>¤‰B‰ŠKGáÒŒ!“§ÒßKUDÐâöÏ’ ‡8—˜±­+>/¼ÎìþµØ?çeVÚÏä—ñ¾÷bHûcCÿõç§Ïº’Yäxîì)nýfF³yÅ*vD\%EéH£Ž/2ixœ”Ü‹Ûl`-bÿ ãÂm9.Mz2áåúœÛ¼ž?Â/‘$s¦Í°)Lû?ô•éo2¨Š—¯¸}ˆµ;b° Û}ëca$­šŽ63wå?üðW;æ4ÏÔÁ§[߯+Œ€D=eåè ’Ï Ž„ÄѸ{KÌíri]÷[ö¹Ä(/ÏRŒ«¢ûìÍxþ0Ž ×†²ëƒ ‚Ó‚\–½Ç—ÑmygædZÙ¦ºv.sßY†ùªÉ´.êwû€’ÆÏáØ×ÓYt­#ïÌšB ÇŒúÊÓ,}>o½ëCð¸Q|>²û2uù*ö´ý˜6e{”MUÍ=êè3D«Ýèó\c­Œ Ö—)¦ÍŸ§½û1¶½@VAòA¡B¥*æ¤\_Y9(û”Žrøj]üZÙÎøµråzÈQbž$šôlÚ«¤×„Qº[ajY‹ ±ãè¦ÜÏ–O>~Ú¿lÚgF¿I¯àn…ÊÔú­|p.¼7«cØðÉ|BÝÇðÑ+ 1-sœ*¼:ãç儵u-ºù¢ˆ‰!¶¨éÝÉ ]²ÃÓ×'scÌkøÐÒ+ÿ—mêמ֙!8SðKÉ8ÊÁ3>Øê¯H‰ûØ~¼>Ã&tÆÓÒS§æ îêÉù°HÒî ¤¢aÇn´ö°Ãºf{:73EÖ¤'£‚¼p´²¦nç@êb¸z½äÍñ̶GI’T©ºÒJ¾™Œ„öNF$j™‘ ®ö ¸LrA¿ßO`ÄèñùÝìÄ^_Yy(sÍ'1ä]1Á2‹ÌLpnè‹õ¯G9÷"µõ+¬x×c‰‘{ÓÇ»PNTxãëa×ãË'ÿF×õàQܱS͉Us¸~-÷Auq,n°ã|”±VšмAÞ­#Úìfɔɜíúýûv¡±]Á¦1mMG¿%,?t†×7&ýÈaN5 ä=ÀZÏxEIH$^ú¯†³´ —¤Uƒ‹/©€õ##ȱ··Aº¦C‚üÙÜ{ Mñ³¹çYm2«šUkkkd$“” <ÐN“Ijš™½v¤µë˜×}য¬<”1ù¤rô<ÄŸcêàm”‰gX°KÙ&+ȪVËòÿÉJQI+i|IB’É(þ)ÿ<âR]™0­-[–¬f×ÿ}BOÇ"{Ò8&«A÷–㺋۶2cÌüÆÎâýç]‘aB›ÀÖÌ_q„¨±Ä>ƒoàÔüD¡w¼"X˜c¡hÇ´ßÞ&àY¼™áYm²†WEÏ»TõêQ[Åþ'é6ª)æýÕ±û8pEGo/̈jב)1)4}eå¡l§]©Ç8eÇÀy¿ó׎­Ý>ëfEtÈQn(•(ïf_}$÷îru£–öQ— íºh¢.€‡»kq¸î^Òø.®¸i®r¹ØScƾCŸŽCÝæ?þxŒ¬¢+Sœ%1ÁͯSæ|êWkpø‡íœ¹[Òº=þYG8ÂÓ>X—j<àÁõëäJM¢‰ºø4tØeTª\]iÉœäL汕ÌZ´ž­{ÿaço«øßÜ?HrîÀÀŽÎ÷ *UAg¢|ð@¡¯¬”)ù¤‡ã”]ޅÑӬ},£r$°¨M‡ÂöG˜žÂÕûÙrí騨ØÀÕ󜹓Åí¤ 46éß)›m_¯áX|yY „¬^Ányw‚ÍŠˆÄ•*›ØK7È–$(i|Û ú$±eùÎÜÎE››JLdçÓïNÏ;[sÀŒv¯ ÃýÈ~‰.âüâ±ã,öáG.˜©A‘À•éh­,ïWs[ÒÑ?—ýË~át£@ÚY•n¼GÖ¯E ý:ç±}é*_Ë@­É$1:„ý§Ó©L ´=ÊÌÐ7 >¥› 4ì3ž©Á~8fD±ç÷­üy ›Ö™:©'>ŠÇ\OOGN»²8vô?ìÚãóP*T4 Àb‡CRèÛÓ›¡S‚‰ùz£þVàPÇ— –Þ¸ºsɱmw:ì\Á¯…âÜh3g¾@Û‰ŸñÆê•¬~o4 yÔlØž>Jã"/óyÓkx?…qiñÃHŸÆ7'hÊ'd¬\É‚)¿r+W…C-ú½Þo«‡&íØ•±}wòæÊÝôü²×CW¨Tg Ònºó'-M$5W‰]¼>¥µï `Dë rÿ=€ï°6X•r¼¢ÖoëqŸ2yÍ·ü8sŸgȰtp£Q_‚[—ÑÍPÛ£lªêi€ÒÌŸp÷ËC­Õ!“+P›bnf‚À© ï~€Â²ˆú‡¾²r$ÞdXYÜÚÆ¤QÇé¹n6ÝÊ»å¯Ú¸ñ† nè0Ëúõkiß>ÈÐa”Z|ü Z´hUl¹x“a%qóÈ.7ëB;‘xÊ‘8î’H>•Bï»@‹^3¨Øo®\ªòiWe ’Oeó{®6chQí)O"÷–H>•Aí¡¬Þjè ª"‘} I$¡Ú’$ùw›T†$Tb|<"ùÕ’\®àæÍ›899£PTüŸÁ×12*çÇÊŸ"N‹B¡ÿ~¢Š¿Öá)°··çܹ³dffbl\Ê×µðô©õ}Ù377—«W/ãèXã©Ì»¼iµRSÓòorÕCÜç#TKéééDD„‘––‚Z]±¿‡%—+055ÅÚÚSÓß+cpr¹KKk<=õ¿^G$¡Z’$‰ììlrrrÐjµ†G/…BJ¥Â̬ îT`â´K¨–d2fffUî]™ˆ÷Š ‚`"ù‚`"ù‚`"ù‚`"ù‚`"ù‚`"ù‚`"ù‚`â&C¡Z’$‰ë×ã¸};¹Âßá\Ù(Jlmm¨YÓ]ï3kâñ ¡Zº~=޼¼<5jŒ‰IÅ^ª2ÉÎÎ$*ê &&*ÜÜŠÿ‚¨¨ùÕRJJ M›6#''‡¬¬òü˜ —Ëñön@DD¸H>‚ð0µ:N‡N§+y`á±hµZ$IB«Õÿ5Ñà,T["ñ<=¥Y·¢æ#T[âë†%’P‰äcH"ùÕ–¨ø–H>Bµ%N» K48 ‚`¢æ#T[¢æcX¥®ùœþv$]{¾ÄW' qy2’y‡ñÕÉŠ6­g1ÝbH79úÛ6NÜ~Fó{óÍ8ÍÚY8„!Wq<ï)Ì£LÒØþáú z“u—}ãÐü!Œ^{ÑqUn¥L>9r4 [›\މzìkÑë&Òóóˆ»*ÊQÎlßIÈ5ý7r=©G¶ÝSœoÌö¬MôåekøqîK4-ýç´ÊD’¤Rv2”J0RÞâ÷ïw“ðP¹ÒäFŠÇ˜^õèJRºäsé(‡S›3bˆ/©GC8û¸ÙG«!O#ª¸åÊÔŸwÖ¬`|Ó§|æüð¶{Šó½•œŒyC?Z;ª065Aÿ÷.Ÿ=¯ÞÁ4¹²™5‡Ò J•Pª=èÊÑ£ÜôíKP@.{–oáÈÅÑ4ô*(LÝÅ›/ýMÀêù ,ø bÎßsè½±+—àììa,ŠÐ éÑg1²æ¯³evTê®]É/GÎqýŽ.õý2vÝJy¸+iü¼xöÿ¸’ !繑mIm¯–OM ãƒ“ÑÄüÎÛÓ6c=~³ž«Áýgp³øcÖKlôšÏª—êÌó(Ÿ ùŒ„a+X2À9¿ß­mLyˆçVÔ\úkï­ ã\|&&5[ñò”Éô¨SSf4›W¬bGÄUR”Ž4êø"“†·ÁI ÎÁ1RÄ¡DÅ¥£piÆÉSéïUÔƒ‘̸ëOV3Ú»¤qS Yµ5‡®Ÿ–‹Ê¡Ã'21Ð%y‹\WÃÉüº¨mgÏÒK°þäk<6 ç[Ûl˜Ô¼à(–ÇÁ/†óµÕ‡ü2¾12½Ëû Ð¥#˜ów¹|Aÿà ¨;„ŸõÆQïvç‹Áûh6«!‘+·rìZÞX÷>JùœhéÛ| †³éÈ„CõÓN¶E“B¥…ö™—ؾf-žŒ%Eá@ƒöƒ3¤59üóåXÖØ¼Å÷cš¬35Ga¥åÛ¬ÙY±ãæoóE#àûŽ7ÿý¸›ð8wÆ­|‹@“R.FSŠšÏ Ž„ÄѸuKÌíZÒºî-¹TÊÉ«è>{3Kº€ÿTvmÝÌîÙ]P‘Kز÷ø2Ò‰¡3—±~åL†:ŸbÞ;ËË)ÍtK?‡c_OgQT-†ÏZƆUs˜Ø+/‡‡&“ÆÂ~"«ÇtÞ} ñ˜áï߈¸°â úèNG¡–sñx$w}i\¨ëGG ª½&~ÊšU_0Èú8K¿û›Ôü!ùãËù]ó<3–ÿÈÏ_ŽÄ%|>s¶^¿?Kíe.&×¥×Ä9¬^=W\βbÙnK³JôŽkG@_Þ»œÍ`ASþY¸†ÙúÖUqÛî.SÚ7'óØ1ÎÜý kNr8Ü„öí"+Íòâ7ñfv6üót6oø™ÍŸõƱ4û‰úK¿¹L“×>fÕʉ<ÍÔ¥<{Ž£ŸòVm½RL3B:{¿ú”]²øhÍol]2÷“K˜·30¥Ãs­ÈŽˆ¼ö 9Mx¤)Ïuj‚Lï¸F©CY¹:ŽV¯ÏeýOoÓ¡œ–wóÖmô™O¨û>z¥!¦EÌÆÖ¯5Þ—#+h\ ‹À¹[W¼¢N™ Cxøjûûá€1Þºà㌵Ý ½Ë5€Ä}l?^Ÿa:ãiiŒ©Sswõä|X$i÷æ¨Â+ 3~^NX[×¢K/Š˜bKµRõ+Ã¥Asê:˜¡T¨¨Ù1Ÿ¼Xb)ݺ*†¹-î„rä|þ/Isâ(¡ÆméÐH^Êå-A©ösžý=;cgkÅãT«ý¢ Y¨Õµyql©Ûײ;±pYÁ°7ò×ÉŒ˜ˆ£:;Æõ îQŸè§I“t(šÐêN8átH’„æTa&íiWO]¸wkVæüß„7yÞC…N'!éʧ}æÅ!ƒ7zT±ëj䈗yõå—ʵͧÄÓ®Äc\tiÄË,23Á¹¡/Ö¿åpÜ‹Ô.þiyý®Ç#÷¦w¡Ü§ðÆ×®Ç–O6þ8®)ê1À£¸_š«æpýZîƒêâXÜ`~´©ó=¡wèý|¡áFøMï"já§´5ûÐv´ê$?2º¹½* @B"ñÒ|5<˜¥å’V .¾¤ÖEÌÞØÎ+M eù’øÃãÞ9·‹ï7ää…ë¤de“‰ žJ±®ô0÷§Có¥ütôc}<ùïhFoá+/Ûò>¢Äý@ŽâY6IyÈ›¿Âk ǰòç§´}°<)™)’ùóàn?\’X)šØj1ë"¯ðrý:œ>qàÛÔ×€º¤qP 妑]Ο—ÏÊÊ¢o¯X¾ò»ÊFŽx™Áû“™™Y®ó,!ù¤rô<ÄŸcêàm”‰‰°ØÚIDATgX°KÙæ*È:Í‘åÿ“•âL°¤ñ% I&£ø—¨å—êÊ„imÙ²d5»þïz:5œ3mü\ù%ây ËmŤºn(ZYñ¿ãçÑEaáÏÏ’CÆÂ E;¦ýö6eø?‘Ä|0c'.cÆ3ãWìl£X¼6¿¬Äu¥íš±hÓ1bFärø˜Dûi¾ùÛ¥<–÷I÷“’&ÿ×@î*I ÍQÑeܶ¾þ ëO·¤IáéYXb¡ â½ÝСpˆÚL’“î ‘ä´úÿöî<:Š*_àø·ÓÝÙC’d ˜°$€ÎQ߀¢(Š8‚"ëÓãŽÎ¸ŒãŒ£Ž£Î(‹OfÀˆ OGȸçÔ9¡6îýuÕ¯nÝ®[5‘g^ûšcóíìÛ3W§`WgÞÖ­0=){wY,VæÎ95-Y¼ˆk®š‡ÙìÝÄgºíªÏ#·pW?µÞ}»eÚÆã—ô£x÷*t:tÔPÝñÂ*ÕÕ~œ˜D²ò…GÜ"è*¦ð;:$±«´üLÛ'$’ä<Êw/Ád®¸—¹.`ÙÔãlÞœGW¯“>å|b òùxO>Õ“&15iޝ ø×¾|´SÎ'õ U``"ƒ)¦ðûÞÿÖÏúM‡_ÄâKÆ3,1–è0]û }ÆXqêgwšÈ©Y¤—ç‘ûѾT¦2c\Ë!åúþ¤ã¤7(4.ã–ÙZÞßœÃQ÷GâHV“¿§£ÑØ>µ%}F+ö³ÿ³ò\Yd¥8»¹­ïY­'Вŋڷ[<­<&Ÿ†½y|3 “©îמ Ò§O%ªx_Ö‘ç0,¶Ž}Ÿæcl¨ãèןòÖîã§ì'&&ŽqÈl¥¶ºgÌ…Ìû…wÖe“WnÅn­`÷¦Øt)óg„wR’BCm;R†MUáLÛ÷¿€¹™ÕlûŸmªmFi®§¤`EmßêÐ?'ëÆ… ù2›­Å]|¼#'3%$Ÿìm?2iò¹hÍèIL®ýÍŸ[™:e ݺ°GÎàÊ‹ìä¬ÝHîñFN ÆâÝ|z°Û= ?YHL4¡%ûùø{¶ú¾Øøù­ Ï«Ÿ]‡zMafú Þ~é3œ™YŒo=¢¼Qß'=¥ö`:m}§Q —1½ö]¶å»í/tó.±óÞ¦—É+=Yïªö²ë°©m[—>JÙñÚ(3¦1Ê©vsÛŸRîžOV«…k®š×’xÌ?c_žyH>Vòöü›Y™¤vviÇg’YDîî: •ëî˜OÜWϰtÉí<òê>ì#SIr[?nÚ¥ÌÔ~ƃ7ßÊ}ë?§œP¦Ýú8·¥–°é·Ë˜¿ôa^©ÈàÁ'–p®¾³²¤rÙ ™˜þy+_,‚3nÁwü‰Eqûx掹rÑ<òêÇ|WÝÉõ;îbV\¡cûß»øVI“Æ´É*µ ã˜r^Kátã8?ÃB­u"SÇu·Ã!˜É+ãö±'Øü»•Ì[°‚;ŸÞNî‰:Ÿ¿ØA;éz~3[ËΖsý]kø}ÈP^ /ú¤‚‚|RRºuà ;ˆ°&#ÕæS‡Wh#b‰F1WSÙÐ2D£#¬_4‘¡Áè‚T\Š»ÙDµ½—8(ÜÀÀ=Öš LÍn;ô¸m(1 1¨5˜Îš¡']+.."#cb—Ëe`©è³ºÿ¡‚¹ªs'Kœæ*ÊN_ :°ÖWwÙ Xª)ë¬+Åã¶6êÊlÝ,óÙO’賺Ÿ|„/Hò}–$ÿ’ä#ú,U•÷,ø“$ÑgIËÇ¿$ùˆ>K’Iò}–Ë%ÉÇŸ$ùˆ>Kú|üK’è“´ZN§m¯‰ï;EA¯÷üº$Ñ' JKc0Äîqb¢US“ £±‚¤¤dëIò}RBB"••Fø ‡ÃË/ÇéゃC2ä’’<¿ðKÆv !üB~±Tá’|„~!ÉGá’|„~!ÉGá’|„~!ÉGá’|„~!ÉGá2¼"@¨ªJié jkkPå̈Niµ:ú÷aðà!hNû™V‰±wxб;^ JKO`·Û;ö\BBBý]œ€e³Y(,D^xî{ãÞ#É' È‰á{ãÞ"É'€ÈEÙ÷$ƽG’O‘[ß“÷épBø…´|ˆ\•}ObÜ{$ù ‰?yƒ7v¢èH–àþ$œ3–YW-`NZ”ŸÊt€çnxý½›X5ÎOEðµƒ;^ãí¼"¾+©#$a©ã/äºk2Ilû),9­à‹ó×òäe±-ó|ÿúÃÜÿi2÷ýyýõÑu“$Ÿâ›«r5¹ëgmá`®½y)‹Ç%ÊRÆ¡=ŸPN˜[:tš ô:µW;ýÞòq•ñÁ_#»&%‹nç–Q±4•äÓ76rÏG¸ï¡_3>@ƒNZ½¦­Ìõ{7ðxŽŽŸ½ƒ©ýš°Ÿå,Iòéãr_aýÁ4Þp7ôMØ jÄp2¯ÖaÆêÛÞTóÉf6Vdñ×õ+ ‡Óc§³$c‰-eý›“Y»8µÃ‰ë<¾ƒ'Ö}ù÷¬åª¸f¬ž.>+Hò Þ¿*ŸàÝ7óIYøÆ»LXl­ó8Í-›Øûòz¶ì)Áhj&Ä0œÌËY6m  øÛÛ Ÿ7‚ÊÜý•›ÑÇU«VqÙð–™#»¶fóÖ¾#TØ"H‘ÎË3ÍXŽ“ý2ï8F6–ÑÓ¯aù‚IÄk¡íyµ/µ|޲ãíB2~½š!Í&¬­Eq:q4ë˜uÃl^½'‡]óGqA˜[|ð“¯cŸû$÷NÖai:Ë›<-äÛ®¾¬ù8%¥ILH £¹Ëã5†” ð»5›ÙùÞ<]?¾X¿•/›ôè•JÒ¸úžgغu+’¿ãÅMQuò?`ÿßÏóÅ#Yúx69[žæî«/"- ž{Œ÷4³ùCö›¼½fC¬á©å½Rõ³RS)Ç+’9w„ŽŽ N{rc9F©{ˆ” v>»†+G2ç¿’°HâI>EUUïNÕUT¨qôvzXÏ…aØ(â´Vêj‰˜šÅX{)e•jK+!ŒÔ¬™ŒOFqF’uA:ºcåœPUTS.9ŸGqÍ]‹HvÐhÕ‘8f(—ŠZùÍâ[gç0aÅü_¢øëƒ˜Tµ­âõ:»í»Wbܣϣ#ˆ‰R:_îˆb€¡šÊê“ËQáÄ;ky±*ƒ‹ÒŠy%{/V–¿›1n%·]}Y|<ÙCu50¨ëÕL…;Ø’³›ƒß—So³aeCÝŽ-—ÃFsËÏk¢bˆrÖá0)Õ¦pµÁLsK„ÃÞò’®ê*Ôž^x-Ï´íÈ ‰chúy³ž".ŽxöQ[ Äw²\­¥¦Î@||{›¡Á:ˆU^Íöÿeém[ØvÉ8®ªíµ"ÿ’|ˆ×»#tç0<¡”Cßš¸|`tçëT½Ïc~HÒŠÛùã-ÉÄñ—9O-Úþ·ª¨íó4àÒ¨8Œ˜ŠŒ"Rw¿Ýù 3ÝÛߊ…šj3îý¥^¯·½ùu<˜¡ñ'øö{ ³ã":,VSäÊuƒN–S†]{;sû›1kæòß¿ü¿ßüüò¡‹‰í¸÷³ŽÜvõeê`æ.ÌàЛÿäß–ÎW±~{ˆ¢!—rÓ¬ Óâ0;º?ôrPÉΣí¬'>dõ0ù{*0íÓ)‰Gí[ã<Õa\>?•üí9±Ÿ¾¬žÏÞ|ûì+™Ò>;L§`qãn¸‰q?¼Å«ûãEh’|ŠêåÉAèôåÜ9¦'|Žíy…”T×Ry¢ˆÝ9/‘sØN¨aa?îæ½Â*ÌuGÉ}yûÛÊÒY¹ÜæEeqÅÌjÞyé]¾­kFi®çø7_QܨBè4æ]bç½M/“WÚˆÃi¡ê‡½ì:ljÙO(¡¡VJ~(§Iuù î½ãžLvúÍZÉÊØ]üá‘ùàëbÊj*9zh7¯?õ0«~Áê)¸T÷:´þí¢98“• âÈÝòÅNÖãL1>In»ˆ/¾VládÝ÷<Ã>È&û£Wع¡‹>šÄ‘¹xŒ Íè…<4÷¯üíÑ;y'|0—Î 3~'´v,ž,XÇÛUEU‚8ÿ¶§¸yÃs<ÿvªì¡âò%ã c—=Íê—Ö°ù‰»y¶QC¤!‘1— "3- #˜sÓLþ¸á~îªý ë®OñzÝ;ãï‡ Íý¹ôOÏ3ô°eû¶«'dàpÒ&ÞÄ Ì Æbjùf²¥œî»ŠØÙË™³ãA²ßŸÅ£¿òБwȈ‚‚|RRR}´÷ ôáQD†¬×¡Q](Žf¬æ,v ¡ýúÓ/\OËI³Õ(µF¡Ä$Ä ÖT`j½MŽf !SyM=áÑÑD†èÑjT§‹©‹ÐèëMdh0º —âÄn6Qg=Ù{­ @ÿ~!h¬5T6œ~òó‘‘1ñ”y¾qOÙˆÐ`‚uZ\ŠG³•ÆF+Nµ}ˆØA„5©6»ýÒ†&„èxzK%Õfÿ>iØYŒÝIË'€øîª¬`·ÔSÛE¿ÍT…Íä6£±±u ue¶SWn®§¢ÌíߪK]îZu`­¯¦« ‡¥†Ê.Êä+þnùœ¤ÐÔXGS£çuÌU¥˜OŸ­6Q_Q껢y‘$ŸrvœÿÙ$ƽG’O‘Ã÷$ƽG’OQÕÀyt>PIŒ{$Ÿ"Weß“÷I>DN ß“÷I>Äå’Ã×$ƽG’O‘þß“÷I>B«Õát:ÑjcÄòÙLQôz}‡ùcïé*Æî$ùƒÁ@iéq †8ÂÃÃý]œ€ÕÔdÃh¬ ))¹Ã2‰±wxб;I>"!!‘ÊJ#|…ÃáðwqVppC†œCRÒàË$ÆÞá)Æîdl—Â/ä•B¿ä#„ð I>B¿ä#„ð I>B¿ä#„ð‹ÿU¥ööŽ1]IEND®B`‚OTPClient-2.4.6/flatpak/000077500000000000000000000000001414446074000147525ustar00rootroot00000000000000OTPClient-2.4.6/flatpak/build-flatpak.sh000077500000000000000000000004001414446074000200220ustar00rootroot00000000000000#!/bin/bash flatpak-builder \ --force-clean \ --ccache \ --require-changes \ --repo=repo \ --arch="$(flatpak --default-arch)" \ --subject="build of com.github.paolostivanin.OTPClient, $(date)" \ build com.github.paolostivanin.OTPClient.yaml OTPClient-2.4.6/flatpak/com.github.paolostivanin.OTPClient.yaml000066400000000000000000000051171414446074000243660ustar00rootroot00000000000000app-id: com.github.paolostivanin.OTPClient runtime: org.gnome.Platform runtime-version: '3.38' sdk: org.gnome.Sdk command: otpclient finish-args: # X11 + XShm access - --share=ipc - --socket=x11 # Wayland access - --socket=wayland # Notification access - --talk-name=org.freedesktop.Notifications # Screen Lock Listener - --talk-name=org.freedesktop.ScreenSaver - --talk-name=org.freedesktop.login1.Manager - --talk-name=org.freedesktop.login1.Session - --talk-name=org.gnome.ScreenSaver - --talk-name=org.gnome.SessionManager - --talk-name=org.gnome.SessionManager.Presence - --talk-name=com.canonical.Unity.Session # Other - --device=all - --talk-name=org.gnome.Shell.Screenshot modules: - name: libzip buildsystem: cmake-ninja config-opts: - "-DCMAKE_BUILD_TYPE=Release" - "-DCMAKE_INSTALL_LIBDIR=lib" cleanup: - "/include" - "/bin" - "/share" - "/lib/pkgconfig" - "/lib/*.la" sources: - type: archive url: https://libzip.org/download/libzip-1.7.3.tar.xz sha256: a60473ffdb7b4260c08bfa19c2ccea0438edac11193c3afbbb1f17fbcf6c6132 - name: jansson cleanup: - "/include" - "/bin" - "/share" - "/lib/pkgconfig" - "/lib/*.la" sources: - type: archive url: https://www.digip.org/jansson/releases/jansson-2.13.1.tar.gz sha256: f4f377da17b10201a60c1108613e78ee15df6b12016b116b6de42209f47a474f - name: zbar config-opts: - "--without-qt" - "--without-qt5" - "--without-gtk" - "--without-xv" - "--without-imagemagick" - "--without-dbus" - "--with-python=python3" - "--disable-doc" - "--enable-codes=qrcode" sources: - type: archive url: https://www.linuxtv.org/downloads/zbar/zbar-0.23.tar.gz sha256: ac52763a7dd6ddc53ca6cd75ccee14f7abf6ae46ecb31137d025af123edd33bf - name: libbaseencode buildsystem: cmake-ninja config-opts: - "-DCMAKE_BUILD_TYPE=Release" - "-DCMAKE_INSTALL_LIBDIR=lib" cleanup: - "/include" sources: - type: archive url: https://github.com/paolostivanin/libbaseencode/archive/v1.0.9.tar.gz sha256: a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d - name: libcotp buildsystem: cmake-ninja config-opts: - "-DCMAKE_BUILD_TYPE=Release" - "-DCMAKE_INSTALL_LIBDIR=lib" cleanup: - "/include" sources: - type: archive url: https://github.com/paolostivanin/libcotp/archive/v1.2.2.tar.gz sha256: 25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1 - name: OTPClient buildsystem: cmake-ninja config-opts: - "-DCMAKE_BUILD_TYPE=Release" - "-DUSE_FLATPAK_APP_FOLDER=ON" sources: - type: git url: https://github.com/paolostivanin/OTPClient.git branch: master OTPClient-2.4.6/flatpak/run-flatpak.sh000077500000000000000000000001331414446074000175320ustar00rootroot00000000000000#!/bin/bash flatpak-builder --run build com.github.paolostivanin.OTPClient.yaml otpclient OTPClient-2.4.6/man/000077500000000000000000000000001414446074000141035ustar00rootroot00000000000000OTPClient-2.4.6/man/otpclient-cli.1.gz000066400000000000000000000014031414446074000173500ustar00rootroot00000000000000‹~àú^otpclient-cli.1…TMOã0½çWŒz‰¸Pnhµ”²í HÔ„•V”Ã4uZ/‰ÙNKÿýŽíдժRcß¼?Ï ›õ ç°µªF+ ¬ª-,¹ä-_À| öÃj”ËÇ lST‚KÓ® 7¸„Ÿ­ä0¸\ö wtØ5»"k¡j"XÄ• d©4$y:ô°^IJ1<ß>¢Yy·3ÇÃÇ ÌÊ4†Ó®ÎÁ{g¿Ÿ“4›d“eÄJ¬aèÎŽR!.x•“$Í'ÉsFÛ·(`súˆ£%QÞ²átâ±ÑqR€uS‰R:k®PT¹Ï‹E,M£D’Œv£@5NI@ÍÁ´M£4){±I ³³y ×Q%Œ½»"ö¨*h´ô&n…BÇE¡Zg” J´\­'’Öhqކ³Cj³R›Cj·÷hJØ Š°k.?ô9ó:trEc^54þ”ø”´ÎÓˆÝ9ã©yn¯G»( A(¦³°C´ÇÄ.‹Pb‚MG^¼'¤ ·Þ‡ëäß5Z-5=dgßÅuÑÁªw¾?qÂGô÷?±÷ÉyžSÉá>¹ŽÃ%—“ÜŸ”kg®¦Ñ*½=?GìÝCØOïîŃsÐ «cßzïK\¬bþ…­¶ïÁÃíA¹â% Ê t`:¸}_ioêâŸ-÷¡% “]D¬ŒòîÎb_€T6$àŠVkê2ÜëÖX‰E@¹Í©VÏCE¾d·?Fÿlïoµ«šÀñ^îÞvËÁ̘û…™“ä£,z vE‰hê!ŠTûNõÏni jA7¸ÃùQ·®¬mÌM¿¿vÕΨ~ƒªRÆŠ5J!û»YÐ߈÷0Qn_òq2ý2L6HM©…µô&4hSGYÇæHª¥EWžKþÕçA£,„)üU†¨ŠdŸ¶kZyýœÒ÷|.Pºùà t÷ø[˜shMô^CBÿø$ЉOTPClient-2.4.6/man/otpclient.1.gz000066400000000000000000000017011414446074000166040ustar00rootroot00000000000000‹~àú^otpclient.1UËrÚHÝë+n±‚Š%™ÌÂU³À€ ãØ¨23©EKºB¤nUw ™¿ŸÛØãIRÙ@?î9}ŸGÞ¶!>`•‘3lûQï uéäÑe>½·Ì4c¹âJS#AÂwœÂéGhjD¿5èñ¸ˆóJó¾KÞ‰JT\&g"¢h˜¨÷4ÆRPœ?  –Óñ•ý|ø½ÁÒòÃx,ßIÅMVè7a¶jA*x,|i³*±:–vJ¦çšÌ'w bñ¾*ß‚Yðé ZæŒ »± ÿ)Šq« rñ2ô÷x„O›•„&¤ÈƒŸ"›âŽŸiÚ³ošzõ¿% $Ì0Û¯¶÷Ï!QM¨’ÓE@‰wïfÜ—à{r •øÐÙû7÷óÛ ÔT™®RMëŒöÀršš—å˜ãó“)Ï'Pf–¶oá™,1­¬´®jV–˜ ¬v$\ï=ø;³X;tc9T%9tÕœ%ÝÔsÆÎÍ §¾[.èQ/ÒA…TÇDUšÒ+¤¥”Ÿ“ŒÞ5 ^£'q–˜—°.›®Ûô„¾ãÝXUr3ÒŸ+°+7#;Ú9A&k°ås΀ÆÌ¥G;SZÿÈ|Gáæ'1êpwÓóá÷°f†XÍ[w¦›E£;—<ÿ§K &;ÕóUàœ~vþÓ¡-P¥±MÛã:\Î-Í ‰å—‹¶·-»­²¡˜â,×W$øBÎ2cJ}=’,eUäŲ–LæR~`Tça§Ãšï[}Ÿ~ —ëÍ…vÖLCMšA `+ê[‰–¡Ú0£Ö¡¯eEcQ²¾ÆÜ*&b®c ñ¼` fL%RKØTΔl¿ÔqsŒ8P*ù cCXâ=B„6MG5IÐ4ÿ\iv£ÆOTPClient-2.4.6/src/000077500000000000000000000000001414446074000141175ustar00rootroot00000000000000OTPClient-2.4.6/src/add-common.c000066400000000000000000000024621414446074000163050ustar00rootroot00000000000000#include #include "data.h" #include "imports.h" #include "parse-uri.h" static gchar *check_params (GSList *otps); gchar * add_data_to_db (const gchar *otp_uri, AppData *app_data) { GSList *otps = NULL; set_otps_from_uris (otp_uri, &otps); if (g_slist_length (otps) != 1) { return g_strdup ("No valid otpauth uris found"); } gchar *err_msg = check_params (otps); if (err_msg != NULL) { return err_msg; } err_msg = update_db_from_otps (otps, app_data); if (err_msg != NULL) { return err_msg; } free_otps_gslist (otps, g_slist_length (otps)); return NULL; } static gchar * check_params (GSList *otps) { otp_t *otp = g_slist_nth_data (otps, 0); if (otp->account_name == NULL) { return g_strdup ("Label can not be empty, otp not imported"); } if (strlen (otp->secret) == 0) { return g_strdup ("Secret can not be empty, otp not imported"); } if (g_ascii_strcasecmp (otp->type, "TOTP") == 0) { if (otp->period < 10 || otp->period > 120) { gchar *msg = g_strconcat("[INFO]: invalid period for '", otp->account_name, "'. Defaulting back to 30 seconds.", NULL); g_printerr ("%s\n", msg); otp->period = 30; } } return NULL; } OTPClient-2.4.6/src/add-common.h000066400000000000000000000002331414446074000163040ustar00rootroot00000000000000#pragma once #include "data.h" G_BEGIN_DECLS gchar *add_data_to_db (const gchar *otp_uri, AppData *app_data); G_END_DECLS OTPClient-2.4.6/src/add-from-qr.c000066400000000000000000000162521414446074000164020ustar00rootroot00000000000000#include #include #include #include "imports.h" #include "qrcode-parser.h" #include "message-dialogs.h" #include "add-common.h" #include "get-builder.h" typedef struct _gtimeout_data { GtkWidget *diag; gboolean uris_available; gboolean image_available; gboolean gtimeout_exit_value; guint counter; AppData * app_data; } GTimeoutCBData; static gboolean check_result (gpointer data); static void parse_file_and_update_db (const gchar *filename, AppData *app_data); static void uri_received_func (GtkClipboard *clipboard, gchar **uris, gpointer user_data); static void image_received_func (GtkClipboard *clipboard, GdkPixbuf *pixbuf, gpointer user_data); void add_qr_from_file (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; #if GTK_CHECK_VERSION(3, 20, 0) GtkFileChooserNative *dialog = gtk_file_chooser_native_new ("Open File", GTK_WINDOW (app_data->main_window), GTK_FILE_CHOOSER_ACTION_OPEN, "Open", "Cancel"); #else GtkWidget *dialog = gtk_file_chooser_dialog_new ("Open File", GTK_WINDOW (app_data->main_window), GTK_FILE_CHOOSER_ACTION_OPEN, "Cancel", GTK_RESPONSE_CANCEL, "Open", GTK_RESPONSE_ACCEPT, NULL); #endif GtkFileFilter *filter = gtk_file_filter_new (); gtk_file_filter_set_name (filter, "QR Image (*.png)"); gtk_file_filter_add_pattern (filter, "*.png"); gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter); #if GTK_CHECK_VERSION(3, 20, 0) gint res = gtk_native_dialog_run (GTK_NATIVE_DIALOG (dialog)); #else gint res = gtk_dialog_run (GTK_DIALOG (dialog)); #endif if (res == GTK_RESPONSE_ACCEPT) { gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); parse_file_and_update_db (filename, app_data); g_free (filename); } #if GTK_CHECK_VERSION(3, 20, 0) g_object_unref (dialog); #else gtk_widget_destroy (dialog); #endif } void add_qr_from_clipboard (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; GTimeoutCBData *gt_cb_data = g_new0 (GTimeoutCBData, 1); gt_cb_data->uris_available = FALSE; gt_cb_data->image_available = FALSE; gt_cb_data->gtimeout_exit_value = TRUE; gt_cb_data->counter = 0; gt_cb_data->app_data = app_data; guint source_id = g_timeout_add (1000, check_result, gt_cb_data); GtkBuilder *builder = get_builder_from_partial_path (UI_PARTIAL_PATH); gt_cb_data->diag = GTK_WIDGET(gtk_builder_get_object (builder, "diag_qr_clipboard_id")); gtk_widget_show_all (gt_cb_data->diag); gint response = gtk_dialog_run (GTK_DIALOG (gt_cb_data->diag)); if (response == GTK_RESPONSE_CANCEL) { if (gt_cb_data->uris_available == TRUE) { gtk_clipboard_request_uris (app_data->clipboard, (GtkClipboardURIReceivedFunc)uri_received_func, app_data); } if (gt_cb_data->image_available == TRUE) { gtk_clipboard_request_image (app_data->clipboard, (GtkClipboardImageReceivedFunc)image_received_func, app_data); } if (gt_cb_data->gtimeout_exit_value == TRUE) { // only remove if 'check_result' returned TRUE g_source_remove (source_id); } gtk_widget_destroy (gt_cb_data->diag); g_free (gt_cb_data); } g_object_unref (builder); } static gboolean check_result (gpointer data) { GTimeoutCBData *gt_cb_data = (GTimeoutCBData *)data; gt_cb_data->uris_available = gtk_clipboard_wait_is_uris_available (gt_cb_data->app_data->clipboard); gt_cb_data->image_available = gtk_clipboard_wait_is_image_available (gt_cb_data->app_data->clipboard); if (gt_cb_data->counter > 30 || gt_cb_data->uris_available == TRUE || gt_cb_data->image_available == TRUE) { gtk_dialog_response (GTK_DIALOG (gt_cb_data->diag), GTK_RESPONSE_CANCEL); gt_cb_data->gtimeout_exit_value = FALSE; return FALSE; } gt_cb_data->counter++; return TRUE; } static void parse_file_and_update_db (const gchar *filename, AppData *app_data) { gchar *otpauth_uri = NULL; gchar *err_msg = parse_qrcode (filename, &otpauth_uri); if (err_msg != NULL) { show_message_dialog(app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free(err_msg); return; } err_msg = add_data_to_db (otpauth_uri, app_data); if (err_msg != NULL) { show_message_dialog (app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free (err_msg); } else { show_message_dialog (app_data->main_window, "QRCode successfully imported from the screenshot", GTK_MESSAGE_INFO); } gcry_free (otpauth_uri); } static void uri_received_func (GtkClipboard *clipboard __attribute__((unused)), gchar **uris, gpointer user_data) { AppData *app_data = (AppData *)user_data; if (uris != NULL && uris[0] != NULL) { gint len_fpath = g_utf8_strlen (uris[0], -1) - 7 + 1; // -7 is for file:// gchar *file_path = g_malloc0 (len_fpath); memcpy (file_path, uris[0] + 7, len_fpath); parse_file_and_update_db (file_path, app_data); g_free (file_path); } else { show_message_dialog (app_data->main_window, "Couldn't get QR code URI from clipboard", GTK_MESSAGE_ERROR); } } static void image_received_func (GtkClipboard *clipboard __attribute__((unused)), GdkPixbuf *pixbuf, gpointer user_data) { AppData *app_data = (AppData *)user_data; GError *err = NULL; if (pixbuf != NULL) { gchar *filename = g_build_filename (g_get_tmp_dir (), "qrcode_from_cb.png", NULL); gdk_pixbuf_save (pixbuf, filename, "png", &err, NULL); if (err != NULL) { gchar *msg = g_strconcat ("Couldn't save clipboard to png:\n", err->message, NULL); show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_ERROR); g_free (msg); } else { parse_file_and_update_db (filename, app_data); } g_unlink (filename); g_free (filename); } else { show_message_dialog (app_data->main_window, "Couldn't get QR code image from clipboard", GTK_MESSAGE_ERROR); } } OTPClient-2.4.6/src/app.c000066400000000000000000000702561414446074000150550ustar00rootroot00000000000000#include #include #include #include "otpclient.h" #include "gui-common.h" #include "gquarks.h" #include "imports.h" #include "common/exports.h" #include "message-dialogs.h" #include "password-cb.h" #include "get-builder.h" #include "liststore-misc.h" #include "lock-app.h" #include "common/common.h" #include "version.h" #ifndef USE_FLATPAK_APP_FOLDER static gchar *get_db_path (AppData *app_data); #endif static GKeyFile *get_kf_ptr (void); static void get_wh_data (gint *width, gint *height, AppData *app_data); static gboolean get_warn_data (void); static void set_warn_data (gboolean show_warning); static void create_main_window (gint width, gint height, AppData *app_data); static gboolean set_action_group (GtkBuilder *builder, AppData *app_data); static void get_window_size_cb (GtkWidget *window, GtkAllocation *allocation, gpointer user_data); static void toggle_delete_button_cb (GtkWidget *main_window, gpointer user_data); static void del_data_cb (GtkToggleButton *btn, gpointer user_data); static void change_password_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); static void save_sort_order (GtkTreeView *tree_view); static void save_window_size (gint width, gint height); static void store_data (const gchar *param1_name, gint param1_value, const gchar *param2_name, gint param2_value); static gboolean key_pressed_cb (GtkWidget *window, GdkEventKey *event_key, gpointer user_data); static gboolean show_memlock_warn_dialog (gint32 max_file_size, GtkBuilder *builder); static void set_open_db_action (GtkWidget *btn, gpointer user_data); void activate (GtkApplication *app, gpointer user_data __attribute__((unused))) { gint32 max_file_size = get_max_file_size_from_memlock (); AppData *app_data = g_new0 (AppData, 1); app_data->app_locked = FALSE; gint width = 0, height = 0; app_data->show_next_otp = FALSE; // next otp not shown by default app_data->disable_notifications = FALSE; // notifications enabled by default app_data->search_column = 0; // account app_data->auto_lock = FALSE; // disabled by default app_data->inactivity_timeout = 0; // never // open_db_file_action is set only on first startup and not when the db is deleted but the cfg file is there, therefore we need a default action app_data->open_db_file_action = GTK_FILE_CHOOSER_ACTION_SAVE; get_wh_data (&width, &height, app_data); app_data->db_data = g_new0 (DatabaseData, 1); app_data->builder = get_builder_from_partial_path (UI_PARTIAL_PATH); create_main_window (width, height, app_data); if (app_data->main_window == NULL) { g_printerr ("Couldn't locate the ui file, exiting...\n"); g_free (app_data->db_data); g_application_quit (G_APPLICATION(app)); return; } gtk_application_add_window (GTK_APPLICATION(app), GTK_WINDOW(app_data->main_window)); g_signal_connect (app_data->main_window, "size-allocate", G_CALLBACK(get_window_size_cb), NULL); gchar *init_msg = init_libs (max_file_size); if (init_msg != NULL) { show_message_dialog (app_data->main_window, init_msg, GTK_MESSAGE_ERROR); g_free (init_msg); g_free (app_data->db_data); g_application_quit (G_APPLICATION(app)); return; } #ifdef USE_FLATPAK_APP_FOLDER app_data->db_data->db_path = g_build_filename (g_get_user_data_dir (), "otpclient-db.enc", NULL); // on the first run the cfg file is not created in the flatpak version because we use a non-changeable db path gchar *cfg_file_path = g_build_filename (g_get_user_data_dir (), "otpclient.cfg", NULL); if (!g_file_test (cfg_file_path, G_FILE_TEST_EXISTS)) { g_file_set_contents (cfg_file_path, "[config]", -1, NULL); } g_free (cfg_file_path); #else if (!g_file_test (g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL), G_FILE_TEST_EXISTS)) { app_data->diag_rcdb = GTK_WIDGET(gtk_builder_get_object (app_data->builder, "dialog_rcdb_id")); GtkWidget *restore_btn = GTK_WIDGET(gtk_builder_get_object (app_data->builder, "diag_rc_restoredb_btn_id")); GtkWidget *create_btn = GTK_WIDGET(gtk_builder_get_object (app_data->builder, "diag_rc_createdb_btn_id")); g_signal_connect (restore_btn, "clicked", G_CALLBACK (set_open_db_action), app_data); g_signal_connect (create_btn, "clicked", G_CALLBACK (set_open_db_action), app_data); gint response = gtk_dialog_run (GTK_DIALOG(app_data->diag_rcdb)); switch (response) { case GTK_RESPONSE_CANCEL: default: gtk_widget_destroy (app_data->diag_rcdb); g_free (app_data->db_data); g_free (app_data); g_application_quit (G_APPLICATION(app)); return; case GTK_RESPONSE_OK: gtk_widget_destroy (app_data->diag_rcdb); } } app_data->db_data->db_path = get_db_path (app_data); if (app_data->db_data->db_path == NULL) { g_free (app_data->db_data); g_free (app_data); g_application_quit (G_APPLICATION(app)); return; } #endif if (max_file_size < (96 * 1024) && get_warn_data () == TRUE) { if (show_memlock_warn_dialog (max_file_size, app_data->builder) == TRUE) { g_free (app_data->db_data); g_free (app_data); g_application_quit (G_APPLICATION(app)); return; } } app_data->db_data->max_file_size_from_memlock = max_file_size; app_data->db_data->objects_hash = NULL; app_data->db_data->data_to_add = NULL; // subtract 3 seconds from the current time. Needed for "last_hotp" to be set on the first run app_data->db_data->last_hotp_update = g_date_time_add_seconds (g_date_time_new_now_local (), -(G_TIME_SPAN_SECOND * HOTP_RATE_LIMIT_IN_SEC)); retry: app_data->db_data->key = prompt_for_password (app_data, NULL, NULL, FALSE); if (app_data->db_data->key == NULL) { g_free (app_data->db_data); g_free (app_data); g_application_quit (G_APPLICATION(app)); return; } GError *err = NULL; load_db (app_data->db_data, &err); if (err != NULL && !g_error_matches (err, missing_file_gquark (), MISSING_FILE_CODE)) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); gcry_free (app_data->db_data->key); if (g_error_matches (err, memlock_error_gquark (), MEMLOCK_ERRCODE)) { g_free (app_data->db_data); g_free (app_data); g_clear_error (&err); g_application_quit (G_APPLICATION(app)); return; } g_clear_error (&err); goto retry; } if (g_error_matches (err, missing_file_gquark(), MISSING_FILE_CODE)) { const gchar *msg = "This is the first time you run OTPClient, so you need to add or import some tokens.\n" "- to add tokens, please click the + button on the top left.\n" "- to import existing tokens, please click the menu button on the top right.\n" "\nIf you need more info, please visit the project's wiki"; show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_INFO); GError *tmp_err = NULL; update_and_reload_db (app_data, app_data->db_data, FALSE, &tmp_err); g_clear_error (&tmp_err); } app_data->clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); create_treeview (app_data); app_data->notification = g_notification_new ("OTPClient"); g_notification_set_priority (app_data->notification, G_NOTIFICATION_PRIORITY_NORMAL); GIcon *icon = g_themed_icon_new ("com.github.paolostivanin.OTPClient"); g_notification_set_icon (app_data->notification, icon); g_notification_set_body (app_data->notification, "OTP value has been copied to the clipboard"); g_object_unref (icon); GtkToggleButton *del_toggle_btn = GTK_TOGGLE_BUTTON(gtk_builder_get_object (app_data->builder, "del_toggle_btn_id")); g_signal_new ("toggle-delete-button", G_TYPE_OBJECT, G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, 0, NULL, NULL, NULL, G_TYPE_NONE, 0); GtkBindingSet *toggle_btn_binding_set = gtk_binding_set_by_class (GTK_APPLICATION_WINDOW_GET_CLASS (app_data->main_window)); gtk_binding_entry_add_signal (toggle_btn_binding_set, GDK_KEY_d, GDK_CONTROL_MASK, "toggle-delete-button", 0); g_signal_connect (app_data->main_window, "toggle-delete-button", G_CALLBACK(toggle_delete_button_cb), del_toggle_btn); g_signal_connect (del_toggle_btn, "toggled", G_CALLBACK(del_data_cb), app_data); g_signal_connect (app_data->main_window, "key_press_event", G_CALLBACK(key_pressed_cb), NULL); g_signal_connect (app_data->main_window, "destroy", G_CALLBACK(destroy_cb), app_data); app_data->source_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 500, traverse_liststore, app_data, NULL); setup_dbus_listener (app_data); // set last user activity to now, so we have a starting point for the autolock feature app_data->last_user_activity = g_date_time_new_now_local (); app_data->source_id_last_activity = g_timeout_add_seconds (1, check_inactivity, app_data); gtk_widget_show_all (app_data->main_window); } static gboolean show_memlock_warn_dialog (gint32 max_file_size, GtkBuilder *builder) { gchar *msg = g_strdup_printf ("Your OS's memlock limit (%d) may be too low for you. " "This could crash the program when importing data from 3rd party apps " "or when a certain amount of tokens is reached. " "Please have a look at the secure memory wiki page before " "using this software with the current settings.", max_file_size); GtkWidget *warn_diag = GTK_WIDGET(gtk_builder_get_object (builder, "warning_diag_id")); GtkLabel *warn_label = GTK_LABEL(gtk_builder_get_object (builder, "warning_diag_label_id")); GtkWidget *warn_chk_btn = GTK_WIDGET(gtk_builder_get_object (builder, "warning_diag_check_btn_id")); gtk_label_set_label (warn_label, msg); gtk_widget_show_all (warn_diag); gboolean quit = FALSE; gint result = gtk_dialog_run (GTK_DIALOG (warn_diag)); switch (result) { case GTK_RESPONSE_OK: set_warn_data (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(warn_chk_btn))); break; case GTK_RESPONSE_CLOSE: default: set_warn_data (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(warn_chk_btn))); quit = TRUE; break; } gtk_widget_destroy (warn_diag); g_free (msg); return quit; } static gboolean key_pressed_cb (GtkWidget *window, GdkEventKey *event_key, gpointer user_data __attribute__((unused))) { switch (event_key->keyval) { case GDK_KEY_q: if (event_key->state & GDK_CONTROL_MASK) { gtk_window_close (GTK_WINDOW(window)); } break; } return FALSE; } static GKeyFile * get_kf_ptr () { GError *err = NULL; GKeyFile *kf = g_key_file_new (); gchar *cfg_file_path; #ifndef USE_FLATPAK_APP_FOLDER cfg_file_path = g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL); #else cfg_file_path = g_build_filename (g_get_user_data_dir (), "otpclient.cfg", NULL); #endif if (g_file_test (cfg_file_path, G_FILE_TEST_EXISTS)) { if (g_key_file_load_from_file (kf, cfg_file_path, G_KEY_FILE_NONE, &err)) { g_free (cfg_file_path); return kf; } g_printerr ("%s\n", err->message); } g_free (cfg_file_path); g_key_file_free (kf); return NULL; } static void get_wh_data (gint *width, gint *height, AppData *app_data) { GKeyFile *kf = get_kf_ptr (); if (kf != NULL) { *width = g_key_file_get_integer (kf, "config", "window_width", NULL); *height = g_key_file_get_integer (kf, "config", "window_height", NULL); app_data->show_next_otp = g_key_file_get_boolean (kf, "config", "show_next_otp", NULL); app_data->disable_notifications = g_key_file_get_boolean (kf, "config", "notifications", NULL); app_data->search_column = g_key_file_get_integer (kf, "config", "search_column", NULL); app_data->auto_lock = g_key_file_get_boolean (kf, "config", "auto_lock", NULL); app_data->inactivity_timeout = g_key_file_get_integer (kf, "config", "inactivity_timeout", NULL); g_key_file_free (kf); } } static gboolean get_warn_data () { GKeyFile *kf = get_kf_ptr (); gboolean show_warning = TRUE; GError *err = NULL; if (kf != NULL) { show_warning = g_key_file_get_boolean (kf, "config", "show_memlock_warning", &err); if (err != NULL && (err->code == G_KEY_FILE_ERROR_KEY_NOT_FOUND || err->code == G_KEY_FILE_ERROR_INVALID_VALUE)) { // value is not present, so we want to show the warning show_warning = TRUE; } g_key_file_free (kf); } return show_warning; } static void set_warn_data (gboolean show_warning) { GKeyFile *kf = get_kf_ptr (); GError *err = NULL; if (kf != NULL) { g_key_file_set_boolean (kf, "config", "show_memlock_warning", show_warning); gchar *cfg_file_path; #ifndef USE_FLATPAK_APP_FOLDER cfg_file_path = g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL); #else cfg_file_path = g_build_filename (g_get_user_data_dir (), "otpclient.cfg", NULL); #endif if (!g_key_file_save_to_file (kf, cfg_file_path, &err)) { g_printerr ("%s\n", err->message); } g_free (cfg_file_path); g_key_file_free (kf); } } static void create_main_window (gint width, gint height, AppData *app_data) { app_data->main_window = GTK_WIDGET(gtk_builder_get_object (app_data->builder, "appwindow_id")); gtk_window_set_icon_name (GTK_WINDOW(app_data->main_window), "otpclient"); gtk_window_set_default_size (GTK_WINDOW(app_data->main_window), (width >= 150) ? width : 500, (height >= 150) ? height : 300); GtkWidget *header_bar = GTK_WIDGET(gtk_builder_get_object (app_data->builder, "headerbar_id")); gtk_header_bar_set_subtitle (GTK_HEADER_BAR(header_bar), PROJECT_VER); set_action_group (app_data->builder, app_data); } static gboolean set_action_group (GtkBuilder *builder, AppData *app_data) { static GActionEntry settings_menu_entries[] = { { .name = ANDOTP_IMPORT_ACTION_NAME, .activate = select_file_cb }, { .name = ANDOTP_IMPORT_PLAIN_ACTION_NAME, .activate = select_file_cb }, { .name = AUTHPLUS_IMPORT_ACTION_NAME, .activate = select_file_cb }, { .name = FREEOTPPLUS_IMPORT_ACTION_NAME, .activate = select_file_cb }, { .name = AEGIS_IMPORT_ACTION_NAME, .activate = select_file_cb }, { .name = ANDOTP_EXPORT_ACTION_NAME, .activate = export_data_cb }, { .name = ANDOTP_EXPORT_PLAIN_ACTION_NAME, .activate = export_data_cb }, { .name = FREEOTPPLUS_EXPORT_ACTION_NAME, .activate = export_data_cb }, { .name = AEGIS_EXPORT_ACTION_NAME, .activate = export_data_cb }, { .name = "change_pwd", .activate = change_password_cb }, { .name = "edit_row", .activate = edit_selected_row_cb }, { .name = "settings", .activate = settings_dialog_cb }, { .name = "shortcuts", .activate = shortcuts_window_cb } }; static GActionEntry add_menu_entries[] = { { .name = "webcam", .activate = webcam_cb }, { .name = "screenshot", .activate = screenshot_cb }, { .name = "import_qr_file", .activate = add_qr_from_file }, { .name = "import_qr_clipboard", .activate = add_qr_from_clipboard }, { .name = "manual", .activate = add_data_dialog } }; GtkWidget *settings_popover = GTK_WIDGET (gtk_builder_get_object (builder, "settings_pop_id")); GActionGroup *settings_actions = (GActionGroup *)g_simple_action_group_new (); g_action_map_add_action_entries (G_ACTION_MAP (settings_actions), settings_menu_entries, G_N_ELEMENTS (settings_menu_entries), app_data); gtk_widget_insert_action_group (settings_popover, "settings_menu", settings_actions); GtkWidget *add_popover = GTK_WIDGET (gtk_builder_get_object (builder, "add_pop_id")); GActionGroup *add_actions = (GActionGroup *)g_simple_action_group_new (); g_action_map_add_action_entries (G_ACTION_MAP (add_actions), add_menu_entries, G_N_ELEMENTS (add_menu_entries), app_data); gtk_widget_insert_action_group (add_popover, "add_menu", add_actions); #if GTK_CHECK_VERSION(3, 20, 0) gtk_popover_set_constrain_to (GTK_POPOVER(add_popover), GTK_POPOVER_CONSTRAINT_NONE); gtk_popover_set_constrain_to (GTK_POPOVER(settings_popover), GTK_POPOVER_CONSTRAINT_NONE); #endif return TRUE; } #ifndef USE_FLATPAK_APP_FOLDER static gchar * get_db_path (AppData *app_data) { gchar *db_path = NULL; GError *err = NULL; GKeyFile *kf = g_key_file_new (); gchar *cfg_file_path = g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL); if (g_file_test (cfg_file_path, G_FILE_TEST_EXISTS)) { if (!g_key_file_load_from_file (kf, cfg_file_path, G_KEY_FILE_NONE, &err)) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); g_key_file_free (kf); return NULL; } db_path = g_key_file_get_string (kf, "config", "db_path", &err); if (db_path == NULL) { goto new_db; } if (!g_file_test (db_path, G_FILE_TEST_EXISTS)) { gchar *msg = g_strconcat ("Database file/location:\n", db_path, "\ndoes not exist. A new database will be created.", NULL); show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_ERROR); g_free (msg); goto new_db; } goto end; } new_db: ; // empty statement workaround #if GTK_CHECK_VERSION(3, 20, 0) GtkFileChooserNative *dialog = gtk_file_chooser_native_new ("Select database location", GTK_WINDOW (app_data->main_window), app_data->open_db_file_action, "OK", "Cancel"); #else GtkWidget *dialog = gtk_file_chooser_dialog_new ("Select database location", GTK_WINDOW (app_data->main_window), app_data->open_db_file_action, "Cancel", GTK_RESPONSE_CANCEL, "OK", GTK_RESPONSE_ACCEPT, NULL); #endif GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog); gtk_file_chooser_set_do_overwrite_confirmation (chooser, TRUE); gtk_file_chooser_set_select_multiple (chooser, FALSE); if (app_data->open_db_file_action == GTK_FILE_CHOOSER_ACTION_SAVE) { gtk_file_chooser_set_current_name (chooser, "NewDatabase.enc"); } #if GTK_CHECK_VERSION(3, 20, 0) gint res = gtk_native_dialog_run (GTK_NATIVE_DIALOG(dialog)); #else gint res = gtk_dialog_run (GTK_DIALOG (dialog)); #endif if (res == GTK_RESPONSE_ACCEPT) { db_path = gtk_file_chooser_get_filename (chooser); g_key_file_set_string (kf, "config", "db_path", db_path); g_key_file_save_to_file (kf, cfg_file_path, &err); if (err != NULL) { g_printerr ("%s\n", err->message); g_key_file_free (kf); } } #if GTK_CHECK_VERSION(3, 20, 0) g_object_unref (dialog); #else gtk_widget_destroy (dialog); #endif end: g_free (cfg_file_path); return db_path; } #endif static void toggle_delete_button_cb (GtkWidget *main_window __attribute__((unused)), gpointer user_data) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(user_data), !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(user_data))); } static void del_data_cb (GtkToggleButton *btn, gpointer user_data) { AppData *app_data = (AppData *)user_data; GtkStyleContext *gsc = gtk_widget_get_style_context (GTK_WIDGET(btn)); GtkTreeSelection *tree_selection = gtk_tree_view_get_selection (app_data->tree_view); if (gtk_toggle_button_get_active (btn)) { app_data->css_provider = gtk_css_provider_new (); gtk_css_provider_load_from_data (app_data->css_provider, "#delbtn { background: #ff0033; }", -1, NULL); gtk_style_context_add_provider (gsc, GTK_STYLE_PROVIDER(app_data->css_provider), GTK_STYLE_PROVIDER_PRIORITY_USER); const gchar *msg = "You just entered the deletion mode. You can now click on the row(s) you'd like to delete.\n" "Please note that once a row has been deleted, it's impossible to recover the associated data."; if (get_confirmation_from_dialog (app_data->main_window, msg)) { g_signal_handlers_disconnect_by_func (app_data->tree_view, row_selected_cb, app_data); // the following function emits the "changed" signal gtk_tree_selection_unselect_all (tree_selection); // clear all active otps before proceeding to the deletion phase g_signal_emit_by_name (app_data->tree_view, "hide-all-otps"); g_signal_connect (app_data->tree_view, "row-activated", G_CALLBACK(delete_rows_cb), app_data); } else { gtk_toggle_button_set_active (btn, FALSE); } } else { gtk_style_context_remove_provider (gsc, GTK_STYLE_PROVIDER(app_data->css_provider)); g_object_unref (app_data->css_provider); g_signal_handlers_disconnect_by_func (app_data->tree_view, delete_rows_cb, app_data); g_signal_connect (app_data->tree_view, "row-activated", G_CALLBACK(row_selected_cb), app_data); } } static void change_password_cb (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; gchar *tmp_key = secure_strdup (app_data->db_data->key); gchar *pwd = prompt_for_password (app_data, tmp_key, NULL, FALSE); if (pwd != NULL) { app_data->db_data->key = pwd; GError *err = NULL; update_and_reload_db (app_data, app_data->db_data, FALSE, &err); if (err != NULL) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); GtkApplication *app = gtk_window_get_application (GTK_WINDOW(app_data->main_window)); destroy_cb (app_data->main_window, app_data); g_application_quit (G_APPLICATION(app)); } show_message_dialog (app_data->main_window, "Password successfully changed", GTK_MESSAGE_INFO); } else { gcry_free (tmp_key); } } static void get_window_size_cb (GtkWidget *window, GtkAllocation *allocation __attribute__((unused)), gpointer user_data __attribute__((unused))) { gint w, h; gtk_window_get_size (GTK_WINDOW(window), &w, &h); g_object_set_data (G_OBJECT(window), "width", GINT_TO_POINTER(w)); g_object_set_data (G_OBJECT(window), "height", GINT_TO_POINTER(h)); } void destroy_cb (GtkWidget *window, gpointer user_data) { AppData *app_data = (AppData *)user_data; save_sort_order (app_data->tree_view); g_source_remove (app_data->source_id); g_source_remove (app_data->source_id_last_activity); g_date_time_unref (app_data->last_user_activity); for (gint i = 0; i < DBUS_SERVICES; i++) { g_dbus_connection_signal_unsubscribe (app_data->connection, app_data->subscription_ids[i]); } g_dbus_connection_close (app_data->connection, NULL, NULL, NULL); gcry_free (app_data->db_data->key); g_free (app_data->db_data->db_path); g_slist_free_full (app_data->db_data->objects_hash, g_free); json_decref (app_data->db_data->json_data); g_free (app_data->db_data); gtk_clipboard_clear (app_data->clipboard); g_application_withdraw_notification (G_APPLICATION(gtk_window_get_application (GTK_WINDOW(app_data->main_window))), NOTIFICATION_ID); g_object_unref (app_data->notification); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wbad-function-cast" gint w = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(window), "width")); gint h = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(window), "height")); #pragma GCC diagnostic pop save_window_size (w, h); g_object_unref (app_data->builder); g_free (app_data); } static void save_sort_order (GtkTreeView *tree_view) { gint id; GtkSortType order; gtk_tree_sortable_get_sort_column_id (GTK_TREE_SORTABLE(GTK_LIST_STORE(gtk_tree_view_get_model (tree_view))), &id, &order); // store data only if it was changed if (id >= 0) { store_data ("column_id", id, "sort_order", order); } } static void save_window_size (gint width, gint height) { store_data ("window_width", width, "window_height", height); } static void store_data (const gchar *param1_name, gint param1_value, const gchar *param2_name, gint param2_value) { GError *err = NULL; GKeyFile *kf = g_key_file_new (); gchar *cfg_file_path; #ifndef USE_FLATPAK_APP_FOLDER cfg_file_path = g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL); #else cfg_file_path = g_build_filename (g_get_user_data_dir (), "otpclient.cfg", NULL); #endif if (g_file_test (cfg_file_path, G_FILE_TEST_EXISTS)) { if (!g_key_file_load_from_file (kf, cfg_file_path, G_KEY_FILE_NONE, &err)) { g_printerr ("%s\n", err->message); } else { g_key_file_set_integer (kf, "config", param1_name, param1_value); g_key_file_set_integer (kf, "config", param2_name, param2_value); if (!g_key_file_save_to_file (kf, cfg_file_path, &err)) { g_printerr ("%s\n", err->message); } } } g_key_file_free (kf); g_free (cfg_file_path); } static void set_open_db_action (GtkWidget *btn, gpointer user_data) { AppData *app_data = (AppData *)user_data; app_data->open_db_file_action = g_strcmp0 (gtk_widget_get_name (btn), "diag_rc_restoredb_btn") == 0 ? GTK_FILE_CHOOSER_ACTION_OPEN : GTK_FILE_CHOOSER_ACTION_SAVE; gtk_dialog_response (GTK_DIALOG(app_data->diag_rcdb), GTK_RESPONSE_OK); } OTPClient-2.4.6/src/authplus.c000066400000000000000000000041301414446074000161260ustar00rootroot00000000000000#include #include #include #include "gquarks.h" #include "parse-uri.h" GSList * get_authplus_data (const gchar *zip_path, const gchar *password, gint32 max_file_size, GError **err) { zip_t *zip_file; struct zip_file *zf; struct zip_stat sb; int zip_err; if ((zip_file = zip_open (zip_path, ZIP_RDONLY, &zip_err)) == NULL) { zip_error_t error; zip_error_init_with_code (&error, zip_err); gchar *msg = g_strdup_printf ("Couldn't open zip file '%s': %s", zip_path, zip_error_strerror (&error)); g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", msg); g_free (msg); zip_error_fini(&error); return NULL; } zip_set_default_password (zip_file, password); if (zip_stat (zip_file, "Accounts.txt", 0, &sb) < 0) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", "zip_stat failed"); zip_discard (zip_file); return NULL; } if (sb.size > max_file_size) { g_set_error (err, file_too_big_gquark (), FILE_TOO_BIG, "File is too big"); zip_discard (zip_file); return NULL; } gchar *sec_buf = gcry_calloc_secure (sb.size, 1); if (sec_buf == NULL) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "Couldn't allocate secure memory"); zip_discard (zip_file); return NULL; } zf = zip_fopen (zip_file, "Accounts.txt", 0); if (zf == NULL) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", "zip_fopen failed"); zip_discard (zip_file); return NULL; } zip_int64_t len = zip_fread (zf, sec_buf, sb.size); if (len < 0) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", "zip_fread failed"); zip_fclose (zf); zip_discard (zip_file); return NULL; } GSList *otps = NULL; set_otps_from_uris (sec_buf, &otps); zip_fclose (zf); zip_discard (zip_file); gcry_free (sec_buf); return otps; } OTPClient-2.4.6/src/cli/000077500000000000000000000000001414446074000146665ustar00rootroot00000000000000OTPClient-2.4.6/src/cli/get-data.c000066400000000000000000000121571414446074000165260ustar00rootroot00000000000000#include #include #include #include "../db-misc.h" #include "../common/common.h" static gint compare_strings (const gchar *s1, const gchar *s2, gboolean match_exactly); static void get_token (json_t *obj, DatabaseData *db_data, gboolean show_next_token); void show_token (DatabaseData *db_data, const gchar *account, const gchar *issuer, gboolean match_exactly, gboolean show_next_token) { gsize index; json_t *obj; gboolean found = FALSE; json_array_foreach (db_data->json_data, index, obj) { const gchar *account_from_db = json_string_value (json_object_get (obj, "label")); const gchar *issuer_from_db = NULL; if (issuer != NULL) { issuer_from_db = json_string_value (json_object_get (obj, "issuer")); } if (account_from_db != NULL && issuer_from_db != NULL && account != NULL) { // both account and issuer are present if (compare_strings (account_from_db, account, match_exactly) == 0 && compare_strings (issuer_from_db, issuer, match_exactly) == 0) { get_token (obj, db_data, show_next_token); found = TRUE; } } else { if (account_from_db != NULL && account != NULL) { // account is present, but issuer is not if (compare_strings (account_from_db, account, match_exactly) == 0) { get_token (obj, db_data, show_next_token); found = TRUE; } } else { // account was null, but issue may be present if (issuer_from_db != NULL) { if (compare_strings (issuer_from_db, issuer, match_exactly) == 0) { get_token (obj, db_data, show_next_token); found = TRUE; } } } } } if (!found) { g_printerr ("Couldn't find the data. Either the given data is wrong or is not in the database.\n"); g_printerr ("Given account: %s\n", account != NULL ? account : ""); g_printerr ("Given issuer: %s\n", issuer != NULL ? issuer : ""); return; } } void list_all_acc_iss (DatabaseData *db_data) { gsize index; json_t *obj; g_print ("================\n"); g_print ("Account | Issuer\n"); g_print ("================\n"); json_array_foreach (db_data->json_data, index, obj) { g_print ("%s | %s\n", json_string_value (json_object_get (obj, "label")), json_string_value (json_object_get (obj, "issuer"))); g_print ("----------------\n"); } } static gint compare_strings (const gchar *s1, const gchar *s2, gboolean match_exactly) { return match_exactly ? g_strcmp0 (s1, s2) : g_ascii_strcasecmp (s1, s2); } static void get_token (json_t *obj, DatabaseData *db_data, gboolean show_next_token) { cotp_error_t cotp_err; const gchar *issuer = json_string_value (json_object_get (obj, "issuer")); const gchar *secret = json_string_value (json_object_get (obj, "secret")); gint digits = json_integer_value (json_object_get (obj, "digits")); gint algo = get_algo_int_from_str (json_string_value (json_object_get (obj, "algo"))); gint period; gint64 counter; if (g_ascii_strcasecmp (json_string_value (json_object_get (obj, "type")), "TOTP") == 0) { period = json_integer_value (json_object_get (obj, "period")); gint remaining_seconds = (period > 59 ? 119 : 59) - g_date_time_get_second (g_date_time_new_now_local()); gint token_validity = remaining_seconds % period; glong current_ts = time(NULL); gchar *current_totp = NULL; gchar *next_totp = NULL; if ((issuer != NULL && g_ascii_strcasecmp (issuer, "steam") == 0) ? TRUE : FALSE) { current_totp = get_steam_totp_at (secret, current_ts, period, &cotp_err); if (show_next_token) next_totp = get_steam_totp_at (secret, current_ts + period, period, &cotp_err); } else { current_totp = get_totp_at (secret, current_ts, digits, period, algo, &cotp_err); if (show_next_token) next_totp = get_totp_at (secret, current_ts + period, digits, period, algo, &cotp_err); } g_print ("Current TOTP (valid for %d more second(s)): %s\n", token_validity, current_totp); if (show_next_token) g_print ("Next TOTP: %s\n", next_totp); } else { counter = json_integer_value (json_object_get (obj, "counter")); g_print ("Current HOTP: %s\n", get_hotp (secret, counter, digits, algo, &cotp_err)); // counter must be updated every time it is accessed json_object_set (obj, "counter", json_integer (counter + 1)); GError *err = NULL; update_and_reload_db (NULL, db_data, FALSE, &err); if (err != NULL) { g_printerr ("[ERROR] %s\n", err->message); } } } OTPClient-2.4.6/src/cli/get-data.h000066400000000000000000000006061414446074000165270ustar00rootroot00000000000000#pragma once #include #include "../db-misc.h" G_BEGIN_DECLS void show_token (DatabaseData *db_data, const gchar *account, const gchar *issuer, gboolean match_exactly, gboolean show_next_token); void list_all_acc_iss (DatabaseData *db_data); G_END_DECLS OTPClient-2.4.6/src/cli/help.c000066400000000000000000000060311414446074000157620ustar00rootroot00000000000000#include #include "version.h" static void print_main_help (const gchar *prg_name); static void print_show_help (const gchar *prg_name); static void print_export_help (const gchar *prg_name); gboolean show_help (const gchar *prg_name, const gchar *help_command) { gboolean help_displayed = FALSE; if (g_strcmp0 (help_command, "-h") == 0 || g_strcmp0 (help_command, "--help") == 0 || g_strcmp0 (help_command, "help") == 0) { print_main_help (prg_name); help_displayed = TRUE; } else if (g_strcmp0 (help_command, "-v") == 0 || g_strcmp0 (help_command, "--version") == 0) { g_print ("%s v%s\n", PROJECT_NAME, PROJECT_VER); help_displayed = TRUE; } else if (g_strcmp0 (help_command, "--help-show") == 0 || g_strcmp0 (help_command, "help-show") == 0) { print_show_help (prg_name); help_displayed = TRUE; } else if (g_strcmp0 (help_command, "--help-export") == 0 || g_strcmp0 (help_command, "help-export") == 0) { print_export_help (prg_name); help_displayed = TRUE; } else if (help_command == NULL || g_utf8_strlen (help_command, -1) < 2) { print_main_help (prg_name); help_displayed = TRUE; } return help_displayed; } static void print_main_help (const gchar *prg_name) { g_print ("Usage:\n %s
[option 1] [option 2] ...\n", prg_name); g_print ("\n"); g_print ("Help Options:\n"); g_print (" -h, --help\t\tShow this help\n"); g_print (" --help-show\t\tShow options\n"); g_print (" --help-export\t\tExport options\n"); g_print ("\n"); g_print ("Main Options:\n"); g_print (" -v, --version\t\t\t\tShow program version\n"); g_print (" show <-a ..> [-i ..] [-m] [-n]\tShow a token\n"); g_print (" list\t\t\t\t\tList all pairs of account and issuer\n"); g_print (" export <-t ..> [-d ..]\t\tExport data\n"); g_print ("\n"); } static void print_show_help (const gchar *prg_name) { g_print ("Usage:\n %s show <-a ..> [-i ..] [-m]\n", prg_name); g_print ("\n"); g_print ("Show Options:\n"); g_print (" -a, --account\t\tThe account name (mandatory)\n"); g_print (" -i, --issuer\t\tThe issuer name (optional)\n"); g_print (" -m, --match-exactly\tShow the token only if it matches exactly the account and/or the issuer (optional)\n"); g_print (" -n, --next\tShow also the next token, not only the current one (optional, valid only for TOTP)\n"); g_print ("\n"); } static void print_export_help (const gchar *prg_name) { g_print ("Usage:\n %s export <-t> [-d ..]\n", prg_name); g_print ("\n"); g_print ("Export Options:\n"); g_print (" -t, --type\t\tExport format. Must be either one of: andotp_plain, andotp_encrypted, freeotpplus, aegis\n"); g_print (" -d, --directory\tThe output directory where the exported file will be saved.\n"); g_print ("\t\t\tIf nothing is specified OR flatpak is being used, the output folder will be the user's HOME directory.\n"); g_print ("\n"); } OTPClient-2.4.6/src/cli/help.h000066400000000000000000000002321414446074000157640ustar00rootroot00000000000000#pragma once #include G_BEGIN_DECLS gboolean show_help (const gchar *prg_name, const gchar *help_command); G_END_DECLS OTPClient-2.4.6/src/cli/main.c000066400000000000000000000210531414446074000157570ustar00rootroot00000000000000#include #include #include #include #include "help.h" #include "get-data.h" #include "../common/common.h" #include "../common/exports.h" #include "../common/get-providers-data.h" #define MAX_ABS_PATH_LEN 256 #ifndef USE_FLATPAK_APP_FOLDER static gchar *get_db_path (void); #endif static gchar *get_pwd (const gchar *pwd_msg); gint main (gint argc, gchar **argv) { if (show_help (argv[0], argv[1])) { return 0; } DatabaseData *db_data = g_new0 (DatabaseData, 1); db_data->max_file_size_from_memlock = get_max_file_size_from_memlock (); gchar *msg = init_libs (db_data->max_file_size_from_memlock); if (msg != NULL) { g_printerr ("%s\n", msg); g_free (msg); g_free (db_data); return -1; } #ifdef USE_FLATPAK_APP_FOLDER db_data->db_path = g_build_filename (g_get_user_data_dir (), "otpclient-db.enc", NULL); // on the first run the cfg file is not created in the flatpak version because we use a non-changeable db path gchar *cfg_file_path = g_build_filename (g_get_user_data_dir (), "otpclient.cfg", NULL); if (!g_file_test (cfg_file_path, G_FILE_TEST_EXISTS)) { g_file_set_contents (cfg_file_path, "[config]", -1, NULL); } g_free (cfg_file_path); #else db_data->db_path = get_db_path (); if (db_data->db_path == NULL) { g_free (db_data); return -1; } #endif db_data->key = get_pwd ("Type the DB decryption password: "); if (db_data->key == NULL) { g_free (db_data); return -1; } db_data->objects_hash = NULL; GError *err = NULL; load_db (db_data, &err); if (err != NULL) { g_printerr ("Error while loading the database: %s\n", err->message); gcry_free (db_data->key); g_free (db_data); return -1; } gchar *account = NULL, *issuer = NULL; gboolean show_next_token = FALSE, match_exactly = FALSE; if (g_strcmp0 (argv[1], "show") == 0) { if (argc < 4 || argc > 8) { g_printerr ("Wrong argument(s). Please type '%s --help-show' to see the available options.\n", argv[0]); g_free (db_data); return -1; } for (gint i = 2; i < argc; i++) { if (g_strcmp0 (argv[i], "-a") == 0) { account = argv[i + 1]; } else if (g_strcmp0 (argv[i], "-i") == 0) { issuer = argv[i + 1]; } else if (g_strcmp0 (argv[i], "-m") == 0) { match_exactly = TRUE; } else if (g_strcmp0 (argv[i], "-n") == 0) { show_next_token = TRUE; } } if (account == NULL) { g_printerr ("[ERROR]: The account option (-a) must be specified and can not be empty.\n"); goto end; } show_token (db_data, account, issuer, match_exactly, show_next_token); } else if (g_strcmp0 (argv[1], "list") == 0) { list_all_acc_iss (db_data); } else if (g_strcmp0 (argv[1], "export") == 0) { if (g_ascii_strcasecmp (argv[3], "andotp_plain") != 0 && g_ascii_strcasecmp (argv[3], "andotp_encrypted") != 0 && g_ascii_strcasecmp (argv[3], "freeotpplus") != 0 && g_ascii_strcasecmp (argv[3], "aegis") != 0) { g_printerr ("Wrong argument(s). Please type '%s --help-export' to see the available options.\n", argv[0]); g_free (db_data); return -1; } const gchar *base_dir = NULL; #ifndef USE_FLATPAK_APP_FOLDER if (argv[4] == NULL) { base_dir = g_get_home_dir (); } else { if (g_ascii_strcasecmp (argv[4], "-d") == 0 && argv[5] != NULL) { if (!g_file_test (argv[5], G_FILE_TEST_IS_DIR)) { g_printerr ("%s is not a directory or the folder doesn't exist. The output will be saved into the HOME directory.\n", argv[5]); base_dir = g_get_home_dir (); } else { base_dir = argv[5]; } } else { g_printerr ("Incorrect parameters used for setting the output folder. Therefore, the exported file will be saved into the HOME directory.\n"); base_dir = g_get_home_dir (); } } #else base_dir = g_get_user_data_dir (); #endif gchar *andotp_export_pwd = NULL, *exported_file_path = NULL, *ret_msg = NULL; if (g_ascii_strcasecmp (argv[3], "andotp_plain") == 0 || g_ascii_strcasecmp (argv[3], "andotp_encrypted") == 0) { if (g_ascii_strcasecmp (argv[3], "andotp_encrypted")) { andotp_export_pwd = get_pwd ("Type the export encryption password: "); if (andotp_export_pwd == NULL) { goto end; } } exported_file_path = g_build_filename (base_dir, andotp_export_pwd != NULL ? "andotp_exports.json.aes" : "andotp_exports.json", NULL); ret_msg = export_andotp (exported_file_path, andotp_export_pwd, db_data->json_data); gcry_free (andotp_export_pwd); } if (g_ascii_strcasecmp (argv[3], "freeotpplus") == 0) { exported_file_path = g_build_filename (base_dir, "freeotpplus-exports.txt", NULL); ret_msg = export_freeotpplus (exported_file_path, db_data->json_data); } if (g_ascii_strcasecmp (argv[3], "aegis") == 0) { exported_file_path = g_build_filename (base_dir, "aegis_export_plain.json", NULL); ret_msg = export_aegis (exported_file_path, db_data->json_data); } if (ret_msg != NULL) { g_printerr ("An error occurred while exporting the data: %s\n", ret_msg); g_free (ret_msg); } else { g_print ("Data successfully exported to: %s\n", exported_file_path); } g_free (exported_file_path); } else { show_help (argv[0], "help"); return -1; } end: gcry_free (db_data->key); g_free (db_data->db_path); g_slist_free_full (db_data->objects_hash, g_free); json_decref (db_data->json_data); g_free (db_data); return 0; } #ifndef USE_FLATPAK_APP_FOLDER static gchar * get_db_path () { gchar *db_path = NULL; GError *err = NULL; GKeyFile *kf = g_key_file_new (); gchar *cfg_file_path = g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL); if (g_file_test (cfg_file_path, G_FILE_TEST_EXISTS)) { if (!g_key_file_load_from_file (kf, cfg_file_path, G_KEY_FILE_NONE, &err)) { g_printerr ("%s\n", err->message); g_key_file_free (kf); return NULL; } db_path = g_key_file_get_string (kf, "config", "db_path", &err); if (db_path == NULL) { goto type_db_path; } if (!g_file_test (db_path, G_FILE_TEST_EXISTS)) { gchar *msg = g_strconcat ("Database file/location (", db_path, ") does not exist.\n", NULL); g_printerr ("%s\n", msg); g_free (msg); goto type_db_path; } goto end; } type_db_path: ; // empty statement workaround g_print ("Type the absolute path to the database: "); db_path = g_malloc0 (MAX_ABS_PATH_LEN); if (fgets (db_path, MAX_ABS_PATH_LEN, stdin) == NULL) { g_printerr ("Couldn't get db path from stdin\n"); g_free (cfg_file_path); return NULL; } else { // remove the newline char db_path[g_utf8_strlen (db_path, -1) - 1] = '\0'; if (!g_file_test (db_path, G_FILE_TEST_EXISTS)) { g_printerr ("File '%s' does not exist\n", db_path); g_free (cfg_file_path); return NULL; } } end: g_free (cfg_file_path); return db_path; } #endif static gchar * get_pwd (const gchar *pwd_msg) { gchar *pwd = gcry_calloc_secure (256, 1); g_print ("%s", pwd_msg); struct termios old, new; if (tcgetattr (STDIN_FILENO, &old) != 0) { g_printerr ("Couldn't get termios info\n"); gcry_free (pwd); return NULL; } new = old; new.c_lflag &= ~ECHO; if (tcsetattr (STDIN_FILENO, TCSAFLUSH, &new) != 0) { g_printerr ("Couldn't turn echoing off\n"); gcry_free (pwd); return NULL; } if (fgets (pwd, 256, stdin) == NULL) { g_printerr ("Couldn't read password from stdin\n"); gcry_free (pwd); return NULL; } g_print ("\n"); tcsetattr (STDIN_FILENO, TCSAFLUSH, &old); pwd[g_utf8_strlen (pwd, -1) - 1] = '\0'; gchar *realloc_pwd = gcry_realloc (pwd, g_utf8_strlen (pwd, -1) + 1); return realloc_pwd; } OTPClient-2.4.6/src/common/000077500000000000000000000000001414446074000154075ustar00rootroot00000000000000OTPClient-2.4.6/src/common/aegis.c000066400000000000000000000151661414446074000166540ustar00rootroot00000000000000#include #include #include #include #include "../imports.h" #include "../gui-common.h" #include "../gquarks.h" #include "common.h" static GSList *parse_json_data (const gchar *data, GError **err); GSList * get_aegis_data (const gchar *path, GError **err) { gchar *plain_json_data; gsize read_len; if (!g_file_get_contents (path, &plain_json_data, &read_len, err)) { return NULL; } GSList *otps = parse_json_data (plain_json_data, err); g_free (plain_json_data); return otps; } gchar * export_aegis (const gchar *export_path, json_t *json_db_data) { GError *err = NULL; json_t *root = json_object (); json_object_set (root, "version", json_integer(1)); json_t *aegis_header_obj = json_object (); json_object_set (aegis_header_obj, "slots", json_null ()); json_object_set (aegis_header_obj, "params", json_null ()); json_object_set (root, "header", aegis_header_obj); json_t *aegis_db_obj = json_object (); json_t *array = json_array (); json_object_set (aegis_db_obj, "version", json_integer(1)); json_object_set (aegis_db_obj, "entries", array); json_object_set (root, "db", aegis_db_obj); json_t *db_obj, *export_obj, *info_obj; gsize index; json_array_foreach (json_db_data, index, db_obj) { export_obj = json_object (); info_obj = json_object (); json_t *otp_type = json_object_get (db_obj, "type"); const gchar *issuer = json_string_value (json_object_get (db_obj, "issuer")); // TODO: must verify this if (issuer != NULL && g_ascii_strcasecmp (issuer, "steam") == 0) { json_object_set (export_obj, "type", json_string ("STEAM")); } else { json_object_set (export_obj, "type", json_string (g_utf8_strdown (json_string_value (otp_type), -1))); } json_object_set (export_obj, "name", json_object_get (db_obj, "label")); const gchar *issuer_from_db = json_string_value (json_object_get (db_obj, "issuer")); if (issuer_from_db != NULL && g_utf8_strlen (issuer_from_db, -1) > 0) { json_object_set (export_obj, "issuer", json_string (issuer_from_db)); } else { json_object_set (export_obj, "issuer", json_null ()); } json_object_set (export_obj, "icon", json_null ()); json_object_set (info_obj, "secret", json_object_get (db_obj, "secret")); json_object_set (info_obj, "digits", json_object_get (db_obj, "digits")); json_object_set (info_obj, "algo", json_object_get (db_obj, "algo")); if (g_ascii_strcasecmp (json_string_value (otp_type), "TOTP") == 0) { json_object_set (info_obj, "period", json_object_get (db_obj, "period")); } else { json_object_set (info_obj, "counter", json_object_get (db_obj, "counter")); } json_object_set (export_obj, "info", info_obj); json_array_append (array, export_obj); } FILE *fp = fopen (export_path, "w"); if (fp == NULL) { g_set_error (&err, generic_error_gquark (), GENERIC_ERRCODE, "couldn't create the file object"); } else { if (json_dumpf (root, fp, JSON_COMPACT) == -1) { g_set_error (&err, generic_error_gquark (), GENERIC_ERRCODE, "couldn't dump json data to file"); } fclose (fp); } json_array_clear (array); json_decref (aegis_db_obj); json_decref (aegis_header_obj); json_decref (root); return (err != NULL ? g_strdup (err->message) : NULL); } static GSList * parse_json_data (const gchar *data, GError **err) { json_error_t jerr; json_t *root = json_loads (data, 0, &jerr); if (root == NULL) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", jerr.text); return NULL; } json_t *array = json_object_get(json_object_get(root, "db"), "entries"); if (array == NULL) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", jerr.text); json_decref (root); return NULL; } GSList *otps = NULL; for (guint i = 0; i < json_array_size (array); i++) { json_t *obj = json_array_get (array, i); otp_t *otp = g_new0 (otp_t, 1); otp->issuer = g_strdup (json_string_value (json_object_get (obj, "issuer"))); otp->account_name = g_strdup (json_string_value (json_object_get (obj, "name"))); json_t *info_obj = json_object_get (obj, "info"); otp->secret = secure_strdup (json_string_value (json_object_get (info_obj, "secret"))); otp->digits = (guint32) json_integer_value (json_object_get(info_obj, "digits")); const gchar *type = json_string_value (json_object_get (obj, "type")); if (g_ascii_strcasecmp (type, "TOTP") == 0) { otp->type = g_strdup (type); otp->period = (guint32)json_integer_value (json_object_get (info_obj, "period")); } else if (g_ascii_strcasecmp (type, "HOTP") == 0) { otp->type = g_strdup (type); otp->counter = json_integer_value (json_object_get (info_obj, "counter")); } else if (g_ascii_strcasecmp (type, "Steam") == 0) { // TODO: must verify this otp->type = g_strdup ("TOTP"); otp->period = (guint32)json_integer_value (json_object_get (info_obj, "period")); if (otp->period == 0) { // Aegis exported backup for Steam might not contain the period field, otp->period = 30; } g_free (otp->issuer); otp->issuer = g_strdup ("Steam"); } else { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "otp type is neither TOTP nor HOTP"); gcry_free (otp->secret); g_free (otp); json_decref (obj); return NULL; } const gchar *algo = json_string_value (json_object_get (info_obj, "algo")); if (g_ascii_strcasecmp (algo, "SHA1") == 0 || g_ascii_strcasecmp (algo, "SHA256") == 0 || g_ascii_strcasecmp (algo, "SHA512") == 0) { otp->algo = g_ascii_strup (algo, -1); } else { g_printerr ("algo not supported (must be either one of: sha1, sha256 or sha512\n"); gcry_free (otp->secret); g_free (otp); json_decref (obj); json_decref (info_obj); return NULL; } otps = g_slist_append (otps, g_memdupX (otp, sizeof (otp_t))); g_free (otp); } json_decref (root); return otps; } OTPClient-2.4.6/src/common/andotp.c000066400000000000000000000343111414446074000170420ustar00rootroot00000000000000#include #include #include #include #include #include "../file-size.h" #include "../imports.h" #include "../gui-common.h" #include "../gquarks.h" #include "common.h" #define ANDOTP_IV_SIZE 12 #define ANDOTP_SALT_SIZE 12 #define ANDOTP_TAG_SIZE 16 static GSList *get_otps_from_encrypted_backup (const gchar *path, const gchar *password, gint32 max_file_size, GFile *in_file, GFileInputStream *in_stream, GError **err); static GSList *get_otps_from_plain_backup (const gchar *path, GError **err); static guchar *get_derived_key (const gchar *password, const guchar *salt, gint iterations); static GSList *parse_json_data (const gchar *data, GError **err); GSList * get_andotp_data (const gchar *path, const gchar *password, gint32 max_file_size, gboolean encrypted, GError **err) { GFile *in_file = g_file_new_for_path(path); GFileInputStream *in_stream = g_file_read(in_file, NULL, err); if (*err != NULL) { g_object_unref(in_file); return NULL; } return encrypted == TRUE ? get_otps_from_encrypted_backup(path, password, max_file_size, in_file, in_stream, err) : get_otps_from_plain_backup(path, err); } static GSList * get_otps_from_encrypted_backup (const gchar *path, const gchar *password, gint32 max_file_size, GFile *in_file, GFileInputStream *in_stream, GError **err) { int32_t le_iterations; if (g_input_stream_read (G_INPUT_STREAM (in_stream), &le_iterations, 4, NULL, err) == -1) { g_object_unref (in_stream); g_object_unref (in_file); return NULL; } int32_t be_iterations = __builtin_bswap32(le_iterations); guchar salt[ANDOTP_SALT_SIZE]; if (g_input_stream_read (G_INPUT_STREAM (in_stream), salt, ANDOTP_SALT_SIZE, NULL, err) == -1) { g_object_unref (in_stream); g_object_unref (in_file); return NULL; } guchar iv[ANDOTP_IV_SIZE]; if (g_input_stream_read (G_INPUT_STREAM (in_stream), iv, ANDOTP_IV_SIZE, NULL, err) == -1) { g_object_unref (in_stream); g_object_unref (in_file); return NULL; } goffset input_file_size = get_file_size (path); guchar tag[ANDOTP_TAG_SIZE]; if (!g_seekable_seek (G_SEEKABLE (in_stream), input_file_size - ANDOTP_TAG_SIZE, G_SEEK_SET, NULL, err)) { g_object_unref (in_stream); g_object_unref (in_file); return NULL; } if (g_input_stream_read (G_INPUT_STREAM (in_stream), tag, ANDOTP_TAG_SIZE, NULL, err) == -1) { g_object_unref (in_stream); g_object_unref (in_file); return NULL; } // 4 is the size of iterations (int32) gsize enc_buf_size = (gsize) input_file_size - 4 - ANDOTP_SALT_SIZE - ANDOTP_IV_SIZE - ANDOTP_TAG_SIZE; if (enc_buf_size < 1) { g_printerr ("A non-encrypted file has been selected\n"); g_object_unref (in_stream); g_object_unref (in_file); return NULL; } else if (enc_buf_size > max_file_size) { g_object_unref (in_stream); g_object_unref (in_file); g_set_error (err, file_too_big_gquark (), FILE_TOO_BIG, "File is too big"); return NULL; } guchar *enc_buf = g_malloc0 (enc_buf_size); if (!g_seekable_seek (G_SEEKABLE (in_stream), 4 + ANDOTP_SALT_SIZE + ANDOTP_IV_SIZE, G_SEEK_SET, NULL, err)) { g_object_unref (in_stream); g_object_unref (in_file); g_free (enc_buf); return NULL; } if (g_input_stream_read (G_INPUT_STREAM (in_stream), enc_buf, enc_buf_size, NULL, err) == -1) { g_object_unref (in_stream); g_object_unref (in_file); g_free (enc_buf); return NULL; } g_object_unref (in_stream); g_object_unref (in_file); guchar *derived_key = get_derived_key (password, salt, be_iterations); gcry_cipher_hd_t hd; gcry_cipher_open (&hd, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_GCM, GCRY_CIPHER_SECURE); gcry_cipher_setkey (hd, derived_key, gcry_cipher_get_algo_keylen (GCRY_CIPHER_AES256)); gcry_cipher_setiv (hd, iv, ANDOTP_IV_SIZE); gchar *decrypted_json = gcry_calloc_secure (enc_buf_size, 1); gcry_cipher_decrypt (hd, decrypted_json, enc_buf_size, enc_buf, enc_buf_size); if (gcry_err_code (gcry_cipher_checktag (hd, tag, ANDOTP_TAG_SIZE)) == GPG_ERR_CHECKSUM) { g_set_error (err, bad_tag_gquark (), BAD_TAG_ERRCODE, "Either the file is corrupted or the password is wrong"); gcry_cipher_close (hd); gcry_free (derived_key); g_free (enc_buf); return NULL; } gcry_cipher_close (hd); gcry_free (derived_key); g_free (enc_buf); GSList *otps = parse_json_data (decrypted_json, err); gcry_free (decrypted_json); return otps; } static GSList * get_otps_from_plain_backup (const gchar *path, GError **err) { gchar *plain_json_data; gsize read_len; if (!g_file_get_contents (path, &plain_json_data, &read_len, err)) { return NULL; } GSList *otps = parse_json_data (plain_json_data, err); g_free (plain_json_data); return otps; } gchar * export_andotp (const gchar *export_path, const gchar *password, json_t *json_db_data) { GError *err = NULL; json_t *array = json_array (); json_t *db_obj, *export_obj; gsize index; json_array_foreach (json_db_data, index, db_obj) { export_obj = json_object (); const gchar *issuer = json_string_value (json_object_get (db_obj, "issuer")); if (issuer != NULL && g_ascii_strcasecmp (issuer, "steam") == 0) { json_object_set (export_obj, "type", json_string ("STEAM")); } else { json_object_set (export_obj, "type", json_object_get (db_obj, "type")); } json_object_set(export_obj, "issuer", json_object_get (db_obj, "issuer")); json_object_set (export_obj, "label", json_object_get (db_obj, "label")); json_object_set (export_obj, "secret", json_object_get (db_obj, "secret")); json_object_set (export_obj, "digits", json_object_get (db_obj, "digits")); json_object_set (export_obj, "algorithm", json_object_get (db_obj, "algo")); if (g_ascii_strcasecmp (json_string_value (json_object_get (db_obj, "type")), "TOTP") == 0) { json_object_set (export_obj, "period", json_object_get (db_obj, "period")); } else { json_object_set (export_obj, "counter", json_object_get (db_obj, "counter")); } json_array_append (array, export_obj); } // if plaintext export is needed, then write the file and exit if (password == NULL) { FILE *fp = fopen (export_path, "w"); if (fp == NULL) { g_set_error (&err, generic_error_gquark (), GENERIC_ERRCODE, "couldn't create the file object"); goto end; } if (json_dumpf (array, fp, JSON_COMPACT) == -1) { g_set_error (&err, generic_error_gquark (), GENERIC_ERRCODE, "couldn't dump json data to file"); } fclose (fp); goto end; } gchar *json_data = json_dumps (array, JSON_COMPACT); if (json_data == NULL) { json_array_clear (array); g_set_error (&err, generic_error_gquark (), GENERIC_ERRCODE, "couldn't dump json data"); goto end; } gsize json_data_size = g_utf8_strlen (json_data, -1); time_t t; srand((unsigned) time(&t)); // https://github.com/andOTP/andOTP/blob/bb01bbd242ace1a2e2620263d950d9852772f051/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Constants.java#L109-L110 int32_t le_iterations = (rand () % (5000 - 1000 + 1)) + 1000; int32_t be_iterations = __builtin_bswap32 (le_iterations); guchar *iv = g_malloc0 (ANDOTP_IV_SIZE); gcry_create_nonce (iv, ANDOTP_IV_SIZE); guchar *salt = g_malloc0 (ANDOTP_SALT_SIZE); gcry_create_nonce (salt, ANDOTP_SALT_SIZE); gcry_cipher_hd_t hd; gcry_cipher_open (&hd, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_GCM, GCRY_CIPHER_SECURE); guchar *derived_key = get_derived_key (password, salt, le_iterations); gcry_cipher_setkey (hd, derived_key, gcry_cipher_get_algo_keylen (GCRY_CIPHER_AES256)); gcry_cipher_setiv (hd, iv, ANDOTP_IV_SIZE); gchar *enc_buf = gcry_calloc_secure (json_data_size, 1); gcry_cipher_encrypt (hd, enc_buf, json_data_size, json_data, json_data_size); guchar tag[ANDOTP_TAG_SIZE]; gcry_cipher_gettag (hd, tag, ANDOTP_TAG_SIZE); gcry_cipher_close (hd); GFile *out_gfile = g_file_new_for_path (export_path); GFileOutputStream *out_stream = g_file_append_to (out_gfile, G_FILE_CREATE_REPLACE_DESTINATION, NULL, &err); if (err != NULL) { goto cleanup_before_exiting; } g_output_stream_write (G_OUTPUT_STREAM (out_stream), &be_iterations, 4, NULL, &err); if (err != NULL) { goto cleanup_before_exiting; } g_output_stream_write (G_OUTPUT_STREAM (out_stream), salt, ANDOTP_SALT_SIZE, NULL, &err); if (err != NULL) { goto cleanup_before_exiting; } g_output_stream_write (G_OUTPUT_STREAM (out_stream), iv, ANDOTP_IV_SIZE, NULL, &err); if (err != NULL) { goto cleanup_before_exiting; } g_output_stream_write (G_OUTPUT_STREAM (out_stream), enc_buf, json_data_size, NULL, &err); if (err != NULL) { goto cleanup_before_exiting; } g_output_stream_write (G_OUTPUT_STREAM (out_stream), tag, ANDOTP_TAG_SIZE, NULL, &err); if (err != NULL) { goto cleanup_before_exiting; } cleanup_before_exiting: g_free (iv); gcry_free (json_data); gcry_free (enc_buf); json_array_clear (array); g_object_unref (out_stream); g_object_unref (out_gfile); end: return (err != NULL ? g_strdup (err->message) : NULL); } static guchar * get_derived_key (const gchar *password, const guchar *salt, gint iterations) { guchar *derived_key = gcry_malloc_secure (32); if (gcry_kdf_derive (password, (gsize) g_utf8_strlen (password, -1), GCRY_KDF_PBKDF2, GCRY_MD_SHA1, salt, ANDOTP_SALT_SIZE, iterations, 32, derived_key) != 0) { return NULL; } return derived_key; } static GSList * parse_json_data (const gchar *data, GError **err) { json_error_t jerr; json_t *array = json_loads (data, 0, &jerr); if (array == NULL) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "%s", jerr.text); return NULL; } GSList *otps = NULL; for (guint i = 0; i < json_array_size (array); i++) { json_t *obj = json_array_get (array, i); otp_t *otp = g_new0 (otp_t, 1); otp->secret = secure_strdup (json_string_value (json_object_get (obj, "secret"))); const gchar *issuer = json_string_value (json_object_get (obj, "issuer")); if (issuer != NULL && g_utf8_strlen (issuer, -1) > 1) { otp->issuer = g_strstrip (g_strdup (issuer)); } const gchar *label_with_prefix = json_string_value (json_object_get (obj, "label")); gchar **tokens = g_strsplit (label_with_prefix, ":", -1); if (tokens[0] && tokens[1]) { if (issuer != NULL && g_ascii_strcasecmp(issuer, tokens[0]) == 0) { otp->account_name = g_strstrip (g_strdup (tokens[1])); } else { otp->issuer = g_strstrip (g_strdup (tokens[0])); otp->account_name = g_strstrip (g_strdup (tokens[1])); } } else { otp->account_name = g_strstrip (g_strdup (tokens[0])); } g_strfreev (tokens); otp->digits = (guint32) json_integer_value (json_object_get(obj, "digits")); const gchar *type = json_string_value (json_object_get (obj, "type")); if (g_ascii_strcasecmp (type, "TOTP") == 0) { otp->type = g_strdup (type); otp->period = (guint32)json_integer_value (json_object_get (obj, "period")); } else if (g_ascii_strcasecmp (type, "HOTP") == 0) { otp->type = g_strdup (type); otp->counter = json_integer_value (json_object_get (obj, "counter")); } else if (g_ascii_strcasecmp (type, "Steam") == 0) { otp->type = g_strdup ("TOTP"); otp->period = (guint32)json_integer_value (json_object_get (obj, "period")); if (otp->period == 0) { // andOTP exported backup for Steam might not contain the period field, otp->period = 30; } g_free (otp->issuer); otp->issuer = g_strdup ("Steam"); } else { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "otp type is neither TOTP nor HOTP"); gcry_free (otp->secret); g_free (otp); json_decref (obj); return NULL; } const gchar *algo = json_string_value (json_object_get (obj, "algorithm")); if (g_ascii_strcasecmp (algo, "SHA1") == 0 || g_ascii_strcasecmp (algo, "SHA256") == 0 || g_ascii_strcasecmp (algo, "SHA512") == 0) { otp->algo = g_ascii_strup (algo, -1); } else { g_printerr ("algo not supported (must be either one of: sha1, sha256 or sha512\n"); gcry_free (otp->secret); g_free (otp); json_decref (obj); return NULL; } otps = g_slist_append (otps, g_memdupX (otp, sizeof (otp_t))); g_free (otp); } json_decref (array); return otps; } OTPClient-2.4.6/src/common/common.c000066400000000000000000000063241414446074000170500ustar00rootroot00000000000000#include #include #include #include "gcrypt.h" #include "jansson.h" gint32 get_max_file_size_from_memlock (void) { const gchar *link = "https://github.com/paolostivanin/OTPClient/wiki/Secure-Memory-Limitations"; struct rlimit r; if (getrlimit (RLIMIT_MEMLOCK, &r) == -1) { // couldn't get memlock limit, so falling back to a default, low value g_print ("[WARNING] your OS's memlock limit may be too low for you (64000 bytes). Please have a look at %s\n", link); return 64000; } else { if (r.rlim_cur == -1 || r.rlim_cur > 4194304) { // memlock is either unlimited or bigger than needed return 4194304; } else { // memlock is less than 4 MB g_print ("[WARNING] your OS's memlock limit may be too low for you (%d bytes). Please have a look at %s\n", (gint32)r.rlim_cur, link); return (gint32)r.rlim_cur; } } } gchar * init_libs (gint32 max_file_size) { if (!gcry_check_version ("1.6.0")) { return g_strdup ("The required version of GCrypt is 1.6.0 or greater."); } if (gcry_control (GCRYCTL_INIT_SECMEM, max_file_size, 0)) { return g_strdup ("Couldn't initialize secure memory.\n"); } gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); json_set_alloc_funcs (gcry_malloc_secure, gcry_free); return NULL; } gint get_algo_int_from_str (const gchar *algo) { gint algo_int; if (g_strcmp0 (algo, "SHA1") == 0) { algo_int = SHA1; } else if (g_strcmp0 (algo, "SHA256") == 0) { algo_int = SHA256; } else { algo_int = SHA512; } return algo_int; } guint32 jenkins_one_at_a_time_hash (const gchar *key, gsize len) { guint32 hash, i; for (hash = i = 0; i < len; ++i) { hash += key[i]; hash += (hash << 10); hash ^= (hash >> 6); } hash += (hash << 3); hash ^= (hash >> 11); hash += (hash << 15); return hash; } guint32 json_object_get_hash (json_t *obj) { const gchar *key; json_t *value; gchar *tmp_string = gcry_calloc_secure (256, 1); json_object_foreach (obj, key, value) { if (g_strcmp0 (key, "period") == 0 || g_strcmp0 (key, "counter") == 0 || g_strcmp0 (key, "digits") == 0) { json_int_t v = json_integer_value (value); g_snprintf (tmp_string + strlen (tmp_string), 256, "%ld", (gint64) v); } else { g_strlcat (tmp_string, json_string_value (value), 256); } } guint32 hash = jenkins_one_at_a_time_hash (tmp_string, strlen (tmp_string) + 1); gcry_free (tmp_string); return hash; } gchar * secure_strdup (const gchar *src) { gchar *sec_buf = gcry_calloc_secure (strlen (src) + 1, 1); memcpy (sec_buf, src, strlen (src) + 1); return sec_buf; } gchar * g_trim_whitespace (const gchar *str) { if (g_utf8_strlen (str, -1) == 0) { return NULL; } gchar *sec_buf = gcry_calloc_secure (strlen (str) + 1, 1); int pos = 0; for (int i = 0; str[i]; i++) { if (str[i] != ' ') { sec_buf[pos++] = str[i]; } } sec_buf[pos] = '\0'; gcry_realloc (sec_buf, g_utf8_strlen(sec_buf, -1) + 1); return sec_buf; } OTPClient-2.4.6/src/common/common.h000066400000000000000000000013021414446074000170440ustar00rootroot00000000000000#pragma once #include #include G_BEGIN_DECLS #if GLIB_CHECK_VERSION(2, 68, 0) #define g_memdupX g_memdup2 #else #define g_memdupX g_memdup #endif gint32 get_max_file_size_from_memlock (void); gchar *init_libs (gint32 max_file_size); gint get_algo_int_from_str (const gchar *algo); guint32 jenkins_one_at_a_time_hash (const gchar *key, gsize len); guint32 json_object_get_hash (json_t *obj); gchar *secure_strdup (const gchar *src); gchar *g_trim_whitespace (const gchar *str); G_END_DECLS OTPClient-2.4.6/src/common/exports.h000066400000000000000000000016321414446074000172660ustar00rootroot00000000000000#pragma once #include #include G_BEGIN_DECLS #define ANDOTP_EXPORT_ACTION_NAME "export_andotp" #define ANDOTP_EXPORT_PLAIN_ACTION_NAME "export_andotp_plain" #define FREEOTPPLUS_EXPORT_ACTION_NAME "export_freeotpplus" #define AEGIS_EXPORT_ACTION_NAME "export_aegis" void export_data_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); gchar *export_andotp (const gchar *export_path, const gchar *password, json_t *json_db_data); gchar *export_freeotpplus (const gchar *export_path, json_t *json_db_data); gchar *export_aegis (const gchar *export_path, json_t *json_db_data); G_END_DECLS OTPClient-2.4.6/src/common/freeotp.c000066400000000000000000000070731414446074000172260ustar00rootroot00000000000000#include #include #include #include #include "../file-size.h" #include "../parse-uri.h" GSList * get_freeotpplus_data (const gchar *path, GError **err) { GSList *otps = NULL; gchar *sec_buf = gcry_calloc_secure (get_file_size (path), 1); if (!g_file_get_contents (path, &sec_buf, NULL, err)) { g_printerr("Couldn't read into memory the freeotp txt file\n"); return NULL; } set_otps_from_uris (sec_buf, &otps); gcry_free (sec_buf); return otps; } gchar * export_freeotpplus (const gchar *export_path, json_t *json_db_data) { gchar *constructed_label; json_t *db_obj; gsize index; FILE *fp = fopen (export_path, "w"); if (fp == NULL) { return g_strdup ("couldn't create the file object"); } json_array_foreach (json_db_data, index, db_obj) { GString *uri = g_string_new (NULL); g_string_append (uri, "otpauth://"); const gchar *issuer = json_string_value (json_object_get (db_obj, "issuer")); if (issuer != NULL && g_ascii_strcasecmp (issuer, "steam") == 0) { g_string_append (uri, "totp/"); constructed_label = g_strconcat ("Steam:", json_string_value (json_object_get (db_obj, "label")), NULL); } else { g_string_append (uri, g_utf8_strdown (json_string_value (json_object_get (db_obj, "type")), -1)); g_string_append (uri, "/"); if (issuer != NULL && g_utf8_strlen (issuer, -1) > 0) { constructed_label = g_strconcat (json_string_value (json_object_get (db_obj, "issuer")), ":", json_string_value (json_object_get (db_obj, "label")), NULL); } else { constructed_label = g_strdup (json_string_value (json_object_get (db_obj, "label"))); } } gchar *escaped_label = g_uri_escape_string (constructed_label, NULL, FALSE); g_string_append (uri, escaped_label); g_string_append (uri, "?secret="); g_string_append (uri,json_string_value (json_object_get (db_obj, "secret"))); if (issuer != NULL && g_ascii_strcasecmp (issuer, "steam") == 0) { g_string_append (uri, "&issuer=Steam"); } if (issuer != NULL && g_utf8_strlen (issuer, -1) > 0) { g_string_append (uri, "&issuer="); g_string_append (uri, json_string_value (json_object_get (db_obj, "issuer"))); } g_string_append (uri, "&digits="); g_string_append (uri,g_strdup_printf ("%lld", json_integer_value ( json_object_get (db_obj, "digits")))); g_string_append (uri, "&algorithm="); g_string_append (uri, json_string_value ( json_object_get (db_obj, "algo"))); if (g_ascii_strcasecmp (json_string_value (json_object_get (db_obj, "type")), "TOTP") == 0) { g_string_append (uri, "&period="); g_string_append (uri, g_strdup_printf ("%lld",json_integer_value ( json_object_get (db_obj, "period")))); } else { g_string_append (uri, "&counter="); g_string_append (uri, g_strdup_printf ("%lld",json_integer_value ( json_object_get (db_obj, "counter")))); } g_string_append (uri, "\n"); fwrite (uri->str, strlen (uri->str), 1, fp); g_free (constructed_label); g_free (escaped_label); g_string_free (uri, TRUE); } fclose (fp); return NULL; } OTPClient-2.4.6/src/common/get-providers-data.h000066400000000000000000000014761414446074000212710ustar00rootroot00000000000000#pragma once #include G_BEGIN_DECLS GSList *get_authplus_data (const gchar *zip_path, const gchar *password, gint32 max_file_size, GError **err); GSList *get_andotp_data (const gchar *path, const gchar *password, gint32 max_file_size, gboolean encrypted, GError **err); GSList *get_freeotpplus_data (const gchar *path, GError **err); GSList *get_aegis_data (const gchar *path, GError **err); G_END_DECLS OTPClient-2.4.6/src/common/version.h.in000066400000000000000000000002211414446074000176450ustar00rootroot00000000000000#pragma once #define PROJECT_NAME "@PROJECT_NAME@" #define PROJECT_VER "@PROJECT_VERSION@" #define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" OTPClient-2.4.6/src/data.h000066400000000000000000000020001414446074000151710ustar00rootroot00000000000000#pragma once #include #include #define DBUS_SERVICES 4 G_BEGIN_DECLS typedef struct _db_data { gchar *db_path; gchar *key; json_t *json_data; GSList *objects_hash; GSList *data_to_add; gint32 max_file_size_from_memlock; gchar *last_hotp; GDateTime *last_hotp_update; } DatabaseData; typedef struct _app_data_t { GtkBuilder *builder; GtkWidget *main_window; GtkTreeView *tree_view; GtkClipboard *clipboard; gboolean show_next_otp; gboolean disable_notifications; gint search_column; gboolean auto_lock; gint inactivity_timeout; GtkCssProvider *css_provider; GNotification *notification; guint source_id; guint source_id_last_activity; DatabaseData *db_data; GDBusConnection *connection; guint subscription_ids[DBUS_SERVICES]; gboolean app_locked; GDateTime *last_user_activity; GtkWidget *diag_rcdb; GtkFileChooserAction open_db_file_action; } AppData; G_END_DECLS OTPClient-2.4.6/src/db-misc.c000066400000000000000000000327031414446074000156060ustar00rootroot00000000000000#include #include #include #include #include "db-misc.h" #include "otpclient.h" #include "file-size.h" #include "gquarks.h" #include "common/common.h" typedef struct _header_data { guint8 iv[IV_SIZE]; guint8 salt[KDF_SALT_SIZE]; } HeaderData; static void reload_db (DatabaseData *db_data, GError **err); static void update_db (DatabaseData *db_data, GError **err); static gpointer encrypt_db (const gchar *db_path, const gchar *in_memory_json, const gchar *password, GError **err); static inline void add_to_json (gpointer list_elem, gpointer json_array); static gchar *decrypt_db (const gchar *db_path, const gchar *password); static guchar *get_derived_key (const gchar *pwd, HeaderData *header_data); static void backup_db (const gchar *path); static void restore_db (const gchar *path); static inline void json_free (gpointer data); static void cleanup (GFile *, gpointer, HeaderData *, GError *); void load_db (DatabaseData *db_data, GError **err) { if (!g_file_test (db_data->db_path, G_FILE_TEST_EXISTS)) { g_set_error (err, missing_file_gquark (), MISSING_FILE_CODE, "Missing database file"); db_data->json_data = NULL; return; } gchar *in_memory_json = decrypt_db (db_data->db_path, db_data->key); if (in_memory_json == TAG_MISMATCH) { g_set_error (err, bad_tag_gquark (), BAD_TAG_ERRCODE, "Either the file is corrupted or the password is wrong"); return; } else if (in_memory_json == KEY_DERIV_ERR) { g_set_error (err, key_deriv_gquark (), KEY_DERIVATION_ERRCODE, "Error during key derivation"); return; } else if (in_memory_json == GENERIC_ERROR) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "An error occurred, please check stderr"); return; } json_error_t jerr; db_data->json_data = json_loads (in_memory_json, 0, &jerr); gcry_free (in_memory_json); if (db_data->json_data == NULL) { gchar *msg = g_strconcat ("Error while loading json data: ", jerr.text, NULL); g_set_error (err, memlock_error_gquark(), MEMLOCK_ERRCODE, "%s", msg); return; } gsize index; json_t *obj; json_array_foreach (db_data->json_data, index, obj) { guint32 hash = json_object_get_hash (obj); db_data->objects_hash = g_slist_append (db_data->objects_hash, g_memdupX (&hash, sizeof (guint32))); } } void update_and_reload_db (AppData *app_data, DatabaseData *db_data, gboolean regenerate_model, GError **err) { update_db (db_data, err); if (*err != NULL && !g_error_matches (*err, missing_file_gquark (), MISSING_FILE_CODE)) { g_printerr ("%s\n", (*err)->message); return; } reload_db (db_data, err); if (*err != NULL && !g_error_matches (*err, missing_file_gquark (), MISSING_FILE_CODE)) { g_printerr ("%s\n", (*err)->message); return; } #ifdef BUILD_GUI if (regenerate_model) { update_model (app_data); g_slist_free_full (app_data->db_data->data_to_add, json_free); app_data->db_data->data_to_add = NULL; } #endif } gint check_duplicate (gconstpointer data, gconstpointer user_data) { guint list_elem = *(guint *)data; if (list_elem == GPOINTER_TO_UINT(user_data)) { return 0; } return -1; } static void reload_db (DatabaseData *db_data, GError **err) { if (db_data->json_data != NULL) { json_decref (db_data->json_data); } g_slist_free_full (db_data->objects_hash, g_free); db_data->objects_hash = NULL; load_db (db_data, err); } static void update_db (DatabaseData *db_data, GError **err) { gboolean first_run = (db_data->json_data == NULL) ? TRUE : FALSE; if (first_run == TRUE) { db_data->json_data = json_array (); } else { // database is backed-up only if this is not the first run backup_db (db_data->db_path); } g_slist_foreach (db_data->data_to_add, add_to_json, db_data->json_data); gchar *plain_data = json_dumps (db_data->json_data, JSON_COMPACT); if (encrypt_db (db_data->db_path, plain_data, db_data->key, err) != NULL) { if (!first_run) { g_printerr ("Encrypting the new data failed, restoring original copy...\n"); restore_db (db_data->db_path); } else { g_printerr ("Couldn't update the database (encrypt_db failed)\n"); if (g_file_test (db_data->db_path, G_FILE_TEST_EXISTS)) { g_unlink (db_data->db_path); } } } else { // database must be backed-up both before and after the update backup_db (db_data->db_path); } gcry_free (plain_data); } static inline void add_to_json (gpointer list_elem, gpointer json_array) { json_array_append (json_array, json_deep_copy (list_elem)); } static gpointer encrypt_db (const gchar *db_path, const gchar *in_memory_json, const gchar *password, GError **err) { GError *local_err = NULL; gcry_cipher_hd_t hd; HeaderData *header_data = g_new0 (HeaderData, 1); gcry_create_nonce (header_data->iv, IV_SIZE); gcry_create_nonce (header_data->salt, KDF_SALT_SIZE); GFile *out_file = g_file_new_for_path (db_path); GFileOutputStream *out_stream = g_file_replace (out_file, NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION, NULL, &local_err); if (local_err != NULL) { g_printerr ("%s\n", local_err->message); g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "Failed to replace existing file"); cleanup (out_file, NULL, header_data, local_err); return GENERIC_ERROR; } if (g_output_stream_write (G_OUTPUT_STREAM (out_stream), header_data, sizeof (HeaderData), NULL, &local_err) == -1) { g_printerr ("%s\n", local_err->message); g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "Failed while writing header data to file"); cleanup (out_file, out_stream, header_data, local_err); return GENERIC_ERROR; } guchar *derived_key = get_derived_key (password, header_data); if (derived_key == SECURE_MEMORY_ALLOC_ERR || derived_key == KEY_DERIV_ERR) { cleanup (out_file, out_stream, header_data, local_err); g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "Failed to derive key.\nPlease check Secure Memory wiki page"); return (gpointer)derived_key; } gsize input_data_len = strlen (in_memory_json) + 1; guchar *enc_buffer = g_malloc0 (input_data_len); gcry_cipher_open (&hd, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_GCM, 0); gcry_cipher_setkey (hd, derived_key, gcry_cipher_get_algo_keylen (GCRY_CIPHER_AES256)); gcry_cipher_setiv (hd, header_data->iv, IV_SIZE); gcry_cipher_authenticate (hd, header_data, sizeof (HeaderData)); gcry_cipher_encrypt (hd, enc_buffer, input_data_len, in_memory_json, input_data_len); guchar tag[TAG_SIZE]; gcry_cipher_gettag (hd, tag, TAG_SIZE); //append tag to outfile if (g_output_stream_write (G_OUTPUT_STREAM(out_stream), enc_buffer, input_data_len, NULL, &local_err) == -1) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "Failed while writing encrypted buffer to file"); cleanup (out_file, out_stream, header_data, local_err); gcry_cipher_close (hd); g_free (enc_buffer); gcry_free (derived_key); return GENERIC_ERROR; } if (g_output_stream_write (G_OUTPUT_STREAM(out_stream), tag, TAG_SIZE, NULL, &local_err) == -1) { g_set_error (err, generic_error_gquark (), GENERIC_ERRCODE, "Failed while writing tag data to file"); cleanup (out_file, out_stream, header_data, local_err); gcry_cipher_close (hd); g_free (enc_buffer); gcry_free (derived_key); return GENERIC_ERROR; } gcry_cipher_close (hd); gcry_free (derived_key); g_free (enc_buffer); cleanup (out_file, out_stream, header_data, NULL); return NULL; } static gchar * decrypt_db (const gchar *db_path, const gchar *password) { GError *err = NULL; gcry_cipher_hd_t hd; HeaderData *header_data = g_new0 (HeaderData, 1); goffset input_file_size = get_file_size (db_path); GFile *in_file = g_file_new_for_path (db_path); GFileInputStream *in_stream = g_file_read (in_file, NULL, &err); if (err != NULL) { g_printerr ("%s\n", err->message); cleanup (in_file, NULL, header_data, err); return GENERIC_ERROR; } if (g_input_stream_read (G_INPUT_STREAM (in_stream), header_data, sizeof (HeaderData), NULL, &err) == -1) { g_printerr ("%s\n", err->message); cleanup (in_file, in_stream, header_data, err); return GENERIC_ERROR; } guchar tag[TAG_SIZE]; if (!g_seekable_seek (G_SEEKABLE (in_stream), input_file_size - TAG_SIZE, G_SEEK_SET, NULL, &err)) { g_printerr ("%s\n", err->message); cleanup (in_file, in_stream, header_data, err); return GENERIC_ERROR; } if (g_input_stream_read (G_INPUT_STREAM (in_stream), tag, TAG_SIZE, NULL, &err) == -1) { g_printerr ("%s\n", err->message); cleanup (in_file, in_stream, header_data, err); return GENERIC_ERROR; } gsize enc_buf_size = input_file_size - sizeof (HeaderData) - TAG_SIZE; guchar *enc_buf = g_malloc0 (enc_buf_size); if (!g_seekable_seek (G_SEEKABLE (in_stream), sizeof (HeaderData), G_SEEK_SET, NULL, &err)) { g_printerr ("%s\n", err->message); cleanup (in_file, in_stream, header_data, err); g_free (enc_buf); return GENERIC_ERROR; } if (g_input_stream_read (G_INPUT_STREAM (in_stream), enc_buf, enc_buf_size, NULL, &err) == -1) { g_printerr ("%s\n", err->message); cleanup (in_file, in_stream, header_data, err); g_free (enc_buf); return GENERIC_ERROR; } g_object_unref (in_stream); g_object_unref (in_file); guchar *derived_key = get_derived_key (password, header_data); if (derived_key == SECURE_MEMORY_ALLOC_ERR || derived_key == KEY_DERIV_ERR) { g_free (header_data); g_free (enc_buf); return (gpointer)derived_key; } gcry_cipher_open (&hd, GCRY_CIPHER_AES256, GCRY_CIPHER_MODE_GCM, 0); gcry_cipher_setkey (hd, derived_key, gcry_cipher_get_algo_keylen (GCRY_CIPHER_AES256)); gcry_cipher_setiv (hd, header_data->iv, IV_SIZE); gcry_cipher_authenticate (hd, header_data, sizeof (HeaderData)); gchar *dec_buf = gcry_calloc_secure (enc_buf_size, 1); gcry_cipher_decrypt (hd, dec_buf, enc_buf_size, enc_buf, enc_buf_size); if (gcry_err_code (gcry_cipher_checktag (hd, tag, TAG_SIZE)) == GPG_ERR_CHECKSUM) { gcry_cipher_close (hd); gcry_free (derived_key); g_free (header_data); g_free (enc_buf); gcry_free (dec_buf); return TAG_MISMATCH; } gcry_cipher_close (hd); gcry_free (derived_key); g_free (header_data); g_free (enc_buf); return dec_buf; } static guchar * get_derived_key (const gchar *pwd, HeaderData *header_data) { gsize key_len = gcry_cipher_get_algo_keylen (GCRY_CIPHER_AES256); gsize pwd_len = strlen (pwd) + 1; guchar *derived_key = gcry_malloc_secure (key_len); if (derived_key == NULL) { g_printerr ("Couldn't allocate secure memory\n"); return SECURE_MEMORY_ALLOC_ERR; } int ret = gcry_kdf_derive (pwd, pwd_len, GCRY_KDF_PBKDF2, GCRY_MD_SHA512, header_data->salt, KDF_SALT_SIZE, KDF_ITERATIONS, key_len, derived_key); if (ret != 0) { gcry_free (derived_key); g_printerr ("Error during key derivation\n"); return KEY_DERIV_ERR; } return derived_key; } static void backup_db (const gchar *path) { GError *err = NULL; GFile *src = g_file_new_for_path (path); gchar *dst_path = g_strconcat (path, ".bak", NULL); GFile *dst = g_file_new_for_path (dst_path); g_free (dst_path); if (!g_file_copy (src, dst, G_FILE_COPY_OVERWRITE | G_FILE_COPY_NOFOLLOW_SYMLINKS, NULL, NULL, NULL, &err)) { g_printerr ("Couldn't create the backup file: %s\n", err->message); g_clear_error (&err); } g_object_unref (src); g_object_unref (dst); } static void restore_db (const gchar *path) { GError *err = NULL; gchar *src_path = g_strconcat (path, ".bak", NULL); GFile *src = g_file_new_for_path (src_path); GFile *dst = g_file_new_for_path (path); g_free (src_path); if (!g_file_copy (src, dst, G_FILE_COPY_OVERWRITE | G_FILE_COPY_NOFOLLOW_SYMLINKS, NULL, NULL, NULL, &err)) { g_printerr ("Couldn't restore the backup file: %s\n", err->message); g_clear_error (&err); } else { g_print ("Backup copy successfully restored.\n"); } g_object_unref (src); g_object_unref (dst); } static inline void json_free (gpointer data) { json_decref (data); } static void cleanup (GFile *in_file, gpointer in_stream, HeaderData *header_data, GError *err) { g_object_unref (in_file); if (in_stream != NULL) g_object_unref (in_stream); if (header_data != NULL) g_free (header_data); if (err != NULL) g_clear_error (&err); } OTPClient-2.4.6/src/db-misc.h000066400000000000000000000015101414446074000156030ustar00rootroot00000000000000#pragma once #include #include "data.h" G_BEGIN_DECLS #define GENERIC_ERROR (gpointer)1 #define TAG_MISMATCH (gpointer)2 #define SECURE_MEMORY_ALLOC_ERR (gpointer)3 #define KEY_DERIV_ERR (gpointer)4 #define IV_SIZE 16 #define KDF_ITERATIONS 100000 #define KDF_SALT_SIZE 32 #define TAG_SIZE 16 void load_db (DatabaseData *db_data, GError **error); void update_and_reload_db (AppData *app_data, DatabaseData *db_data, gboolean regenerate_model, GError **err); gint check_duplicate (gconstpointer data, gconstpointer user_data); G_END_DECLS OTPClient-2.4.6/src/edit-data.c000066400000000000000000000116141414446074000161220ustar00rootroot00000000000000#include #include "imports.h" #include "treeview.h" #include "db-misc.h" #include "get-builder.h" #include "message-dialogs.h" #include "gui-common.h" #include "gquarks.h" typedef struct _edit_data_t { GtkListStore *list_store; GtkTreeIter iter; DatabaseData *db_data; } EditData; static void show_edit_dialog (EditData *edit_data, AppData *app_data, gchar *current_label, gchar *current_issuer); static gchar *get_parse_and_set_data_from_entries (EditData *edit_data, GtkWidget *new_lab_entry, GtkWidget *new_iss_entry); static void set_data_in_lstore_and_json (EditData *edit_data, const gchar *label, const gchar *issuer); void edit_selected_row_cb (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { EditData *edit_data = g_new0 (EditData, 1); AppData *app_data = (AppData *)user_data; edit_data->db_data = app_data->db_data; GtkTreeModel *model = gtk_tree_view_get_model (app_data->tree_view); edit_data->list_store = GTK_LIST_STORE(model); gchar *current_label, *current_issuer; if (gtk_tree_selection_get_selected (gtk_tree_view_get_selection (app_data->tree_view), &model, &edit_data->iter)) { gtk_tree_model_get (model, &edit_data->iter, COLUMN_ACC_LABEL, ¤t_label, COLUMN_ACC_ISSUER, ¤t_issuer, -1); show_edit_dialog (edit_data, app_data, current_label, current_issuer); g_free (current_label); g_free (current_issuer); } GError *err = NULL; update_and_reload_db (app_data, app_data->db_data, TRUE, &err); if (err != NULL && !g_error_matches (err, missing_file_gquark (), MISSING_FILE_CODE)) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); } g_free (edit_data); } static void show_edit_dialog (EditData *edit_data, AppData *app_data, gchar *current_label, gchar *current_issuer) { GtkBuilder *builder = get_builder_from_partial_path (UI_PARTIAL_PATH); GtkWidget *diag = GTK_WIDGET (gtk_builder_get_object (builder, "edit_diag_id")); gtk_window_set_transient_for (GTK_WINDOW(diag), GTK_WINDOW(app_data->main_window)); GtkWidget *cur_lab_entry = GTK_WIDGET (gtk_builder_get_object (builder, "cur_label_entry")); GtkWidget *cur_iss_entry = GTK_WIDGET (gtk_builder_get_object (builder, "cur_iss_entry")); if (cur_lab_entry != NULL) { gtk_entry_set_text (GTK_ENTRY (cur_lab_entry), current_label); } if (cur_iss_entry != NULL) { gtk_entry_set_text (GTK_ENTRY (cur_iss_entry), current_issuer); } GtkWidget *new_lab_entry = GTK_WIDGET (gtk_builder_get_object (builder, "entry_newlabel_id")); GtkWidget *new_iss_entry = GTK_WIDGET (gtk_builder_get_object (builder, "entry_newissuer_id")); if (current_label != NULL) { gtk_entry_set_text (GTK_ENTRY(new_lab_entry), current_label); } if (current_issuer != NULL) { gtk_entry_set_text (GTK_ENTRY(new_iss_entry), current_issuer); } if (current_issuer != NULL && g_ascii_strcasecmp (current_issuer, "steam") == 0) { gtk_widget_set_sensitive (new_iss_entry, FALSE); } gchar *err_msg = NULL; gint res = gtk_dialog_run (GTK_DIALOG (diag)); switch (res) { case GTK_RESPONSE_OK: err_msg = get_parse_and_set_data_from_entries (edit_data, new_lab_entry, new_iss_entry); if (err_msg != NULL) { show_message_dialog (app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free (err_msg); } break; case GTK_RESPONSE_CANCEL: default: break; } gtk_widget_destroy (diag); g_object_unref (builder); } static gchar * get_parse_and_set_data_from_entries (EditData *edit_data, GtkWidget *new_lab_entry, GtkWidget *new_iss_entry) { const gchar *new_label = gtk_entry_get_text (GTK_ENTRY (new_lab_entry)); const gchar *new_issuer = gtk_entry_get_text (GTK_ENTRY (new_iss_entry)); if (!g_str_is_ascii (new_label) || !g_str_is_ascii (new_issuer)) { return g_strdup ("Only ASCII characters are supported at the moment."); } if (g_utf8_strlen (new_label, -1) == 0) { return g_strdup ("Label must not be empty"); } set_data_in_lstore_and_json (edit_data, new_label, new_issuer); return NULL; } static void set_data_in_lstore_and_json (EditData *edit_data, const gchar *label, const gchar *issuer) { gtk_list_store_set (edit_data->list_store, &edit_data->iter, COLUMN_ACC_LABEL, label, COLUMN_ACC_ISSUER, issuer, -1); guint row_number = get_row_number_from_iter (edit_data->list_store, edit_data->iter); json_t *obj = json_array_get (edit_data->db_data->json_data, row_number); json_object_set (obj, "label", json_string (label)); json_object_set (obj, "issuer", json_string (issuer)); } OTPClient-2.4.6/src/exports.c000066400000000000000000000053221414446074000157710ustar00rootroot00000000000000#include #include #include "password-cb.h" #include "message-dialogs.h" #include "common/exports.h" static void show_ret_msg_dialog (GtkWidget *mainwin, gchar *fpath, gchar *ret_msg); void export_data_cb (GSimpleAction *simple, GVariant *parameter __attribute__((unused)), gpointer user_data) { const gchar *action_name = g_action_get_name (G_ACTION(simple)); AppData *app_data = (AppData *)user_data; const gchar *base_dir = NULL; #ifndef USE_FLATPAK_APP_FOLDER base_dir = g_get_home_dir (); #else base_dir = g_get_user_data_dir (); #endif gchar *password = NULL, *exported_file_path = NULL, *ret_msg = NULL; gboolean encrypted = (g_strcmp0 (action_name, "export_andotp") == 0) ? TRUE : FALSE; if (g_strcmp0 (action_name, ANDOTP_EXPORT_ACTION_NAME) == 0 || g_strcmp0 (action_name, ANDOTP_EXPORT_PLAIN_ACTION_NAME) == 0) { if (encrypted == TRUE) { password = prompt_for_password (app_data, NULL, NULL, TRUE); } exported_file_path = g_build_filename (base_dir, encrypted == TRUE ? "andotp_exports.json.aes" : "andotp_exports.json", NULL); ret_msg = export_andotp (exported_file_path, password, app_data->db_data->json_data); show_ret_msg_dialog (app_data->main_window, exported_file_path, ret_msg); } else if (g_strcmp0 (action_name, FREEOTPPLUS_EXPORT_ACTION_NAME) == 0) { exported_file_path = g_build_filename (base_dir, "freeotpplus-exports.txt", NULL); ret_msg = export_freeotpplus (exported_file_path, app_data->db_data->json_data); show_ret_msg_dialog (app_data->main_window, exported_file_path, ret_msg); } else if (g_strcmp0 (action_name, AEGIS_EXPORT_ACTION_NAME) == 0) { exported_file_path = g_build_filename (base_dir, "aegis_export_plain.json", NULL); ret_msg = export_aegis (exported_file_path, app_data->db_data->json_data); show_ret_msg_dialog (app_data->main_window, exported_file_path, ret_msg); } else { show_message_dialog (app_data->main_window, "Invalid export action.", GTK_MESSAGE_ERROR); return; } g_free (ret_msg); g_free (exported_file_path); } static void show_ret_msg_dialog (GtkWidget *mainwin, gchar *fpath, gchar *ret_msg) { GtkMessageType msg_type; gchar *message = NULL; if (ret_msg != NULL) { message = g_strconcat ("Error while exporting data: ", ret_msg, NULL); msg_type = GTK_MESSAGE_ERROR; } else { message = g_strconcat ("Data successfully exported to ", fpath, NULL); msg_type = GTK_MESSAGE_INFO; } show_message_dialog (mainwin, message, msg_type); g_free (message); } OTPClient-2.4.6/src/file-size.c000066400000000000000000000012321414446074000161500ustar00rootroot00000000000000#include goffset get_file_size (const gchar *file_path) { GFileInfo *info; GFile *file; GError *error = NULL; const gchar *attributes = "standard::*"; GFileQueryInfoFlags flags = G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS; GCancellable *cancellable = NULL; goffset file_size; file = g_file_new_for_path (file_path); info = g_file_query_info (G_FILE (file), attributes, flags, cancellable, &error); if (info == NULL) { g_printerr ("%s\n", error->message); g_clear_error (&error); return -1; } file_size = g_file_info_get_size (info); g_object_unref (file); return file_size; } OTPClient-2.4.6/src/file-size.h000066400000000000000000000001251414446074000161550ustar00rootroot00000000000000#pragma once G_BEGIN_DECLS goffset get_file_size (const gchar *path); G_END_DECLS OTPClient-2.4.6/src/get-builder.c000066400000000000000000000007341414446074000164720ustar00rootroot00000000000000#include #include "version.h" GtkBuilder * get_builder_from_partial_path (const gchar *partial_path) { const gchar *prefix; #ifndef USE_FLATPAK_APP_FOLDER // cmake trims the last '/', so we have to manually add it later on prefix = INSTALL_PREFIX; #else prefix = "/app"; #endif gchar *path = g_strconcat (prefix, "/", partial_path, NULL); GtkBuilder *builder = gtk_builder_new_from_file (path); g_free (path); return builder; } OTPClient-2.4.6/src/get-builder.h000066400000000000000000000002611414446074000164720ustar00rootroot00000000000000#pragma once G_BEGIN_DECLS #define UI_PARTIAL_PATH "share/otpclient/otpclient.ui" GtkBuilder *get_builder_from_partial_path (const gchar *partial_path); G_END_DECLS OTPClient-2.4.6/src/gquarks.c000066400000000000000000000011061414446074000157360ustar00rootroot00000000000000#include GQuark missing_file_gquark (void) { return g_quark_from_static_string ("missing_file"); } GQuark bad_tag_gquark (void) { return g_quark_from_static_string ("bad_tag"); } GQuark key_deriv_gquark (void) { return g_quark_from_static_string ("key_deriv"); } GQuark file_too_big_gquark (void) { return g_quark_from_static_string ("file_too_big"); } GQuark generic_error_gquark (void) { return g_quark_from_static_string ("generic_error"); } GQuark memlock_error_gquark (void) { return g_quark_from_static_string ("memlock_error"); } OTPClient-2.4.6/src/gquarks.h000066400000000000000000000007631414446074000157530ustar00rootroot00000000000000#pragma once #include G_BEGIN_DECLS #define MISSING_FILE_CODE 10 #define BAD_TAG_ERRCODE 11 #define KEY_DERIVATION_ERRCODE 12 #define FILE_TOO_BIG 13 #define GENERIC_ERRCODE 14 #define MEMLOCK_ERRCODE 15 GQuark missing_file_gquark (void); GQuark bad_tag_gquark (void); GQuark key_deriv_gquark (void); GQuark file_too_big_gquark (void); GQuark generic_error_gquark (void); GQuark memlock_error_gquark (void); G_END_DECLS OTPClient-2.4.6/src/gui-common.c000066400000000000000000000035651414446074000163460ustar00rootroot00000000000000#include #include #include void icon_press_cb (GtkEntry *entry, gint position __attribute__((unused)), GdkEventButton *event __attribute__((unused)), gpointer data __attribute__((unused))) { gtk_entry_set_visibility (GTK_ENTRY (entry), !gtk_entry_get_visibility (entry)); } guint get_row_number_from_iter (GtkListStore *list_store, GtkTreeIter iter) { GtkTreePath *path = gtk_tree_model_get_path (GTK_TREE_MODEL (list_store), &iter); gint *row_number = gtk_tree_path_get_indices (path); // starts from 0 guint row = (guint) row_number[0]; gtk_tree_path_free (path); return row; } json_t * build_json_obj (const gchar *type, const gchar *acc_label, const gchar *acc_iss, const gchar *acc_key, gint digits, const gchar *algo, gint period, gint64 ctr) { json_t *obj = json_object (); json_object_set (obj, "type", json_string (type)); json_object_set (obj, "label", json_string (acc_label)); json_object_set (obj, "issuer", json_string (acc_iss)); json_object_set (obj, "secret", json_string (acc_key)); json_object_set (obj, "digits", json_integer (digits)); json_object_set (obj, "algo", json_string (algo)); json_object_set (obj, "secret", json_string (acc_key)); if (g_ascii_strcasecmp (type, "TOTP") == 0) { json_object_set (obj, "period", json_integer (period)); } else { json_object_set (obj, "counter", json_integer (ctr)); } return obj; } void send_ok_cb (GtkWidget *entry, gpointer user_data __attribute__((unused))) { gtk_dialog_response (GTK_DIALOG(gtk_widget_get_toplevel (entry)), GTK_RESPONSE_OK); } OTPClient-2.4.6/src/gui-common.h000066400000000000000000000021121414446074000163360ustar00rootroot00000000000000#pragma once #include #include G_BEGIN_DECLS void icon_press_cb (GtkEntry *entry, gint position, GdkEventButton *event, gpointer data); guint get_row_number_from_iter (GtkListStore *list_store, GtkTreeIter iter); json_t *build_json_obj (const gchar *type, const gchar *acc_label, const gchar *acc_iss, const gchar *acc_key, gint digits, const gchar *algo, gint period, gint64 ctr); void send_ok_cb (GtkWidget *entry, gpointer user_data); G_END_DECLS OTPClient-2.4.6/src/imports.c000066400000000000000000000126551414446074000157710ustar00rootroot00000000000000#include #include #include #include "imports.h" #include "password-cb.h" #include "message-dialogs.h" #include "gquarks.h" #include "common/common.h" #include "gui-common.h" #include "db-misc.h" #include "common/get-providers-data.h" static gboolean parse_data_and_update_db (AppData *app_data, const gchar *filename, const gchar *action_name); void select_file_cb (GSimpleAction *simple, GVariant *parameter __attribute__((unused)), gpointer user_data) { const gchar *action_name = g_action_get_name (G_ACTION(simple)); AppData *app_data = (AppData *)user_data; #if GTK_CHECK_VERSION(3, 20, 0) GtkFileChooserNative *dialog = gtk_file_chooser_native_new ("Open File", GTK_WINDOW(app_data->main_window), GTK_FILE_CHOOSER_ACTION_OPEN, "Open", "Cancel"); gint res = gtk_native_dialog_run (GTK_NATIVE_DIALOG(dialog)); #else GtkWidget *dialog = gtk_file_chooser_dialog_new ("Open File", GTK_WINDOW(app_data->main_window), GTK_FILE_CHOOSER_ACTION_OPEN, "Cancel", GTK_RESPONSE_CANCEL, "Open", GTK_RESPONSE_ACCEPT, NULL); gint res = gtk_dialog_run (GTK_DIALOG(dialog)); #endif if (res == GTK_RESPONSE_ACCEPT) { GtkFileChooser *chooser = GTK_FILE_CHOOSER(dialog); gchar *filename = gtk_file_chooser_get_filename (chooser); parse_data_and_update_db (app_data, filename, action_name); g_free (filename); } #if GTK_CHECK_VERSION(3, 20, 0) g_object_unref (dialog); #else gtk_widget_destroy (dialog); #endif } gchar * update_db_from_otps (GSList *otps, AppData *app_data) { json_t *obj; guint list_len = g_slist_length (otps); for (guint i = 0; i < list_len; i++) { otp_t *otp = g_slist_nth_data (otps, i); obj = build_json_obj (otp->type, otp->account_name, otp->issuer, otp->secret, otp->digits, otp->algo, otp->period, otp->counter); guint hash = json_object_get_hash (obj); if (g_slist_find_custom (app_data->db_data->objects_hash, GUINT_TO_POINTER(hash), check_duplicate) == NULL) { app_data->db_data->objects_hash = g_slist_append (app_data->db_data->objects_hash, g_memdupX (&hash, sizeof (guint))); app_data->db_data->data_to_add = g_slist_append (app_data->db_data->data_to_add, obj); } else { g_print ("[INFO] Duplicate element not added\n"); } } GError *err = NULL; update_and_reload_db (app_data, app_data->db_data, TRUE, &err); if (err != NULL && !g_error_matches (err, missing_file_gquark (), MISSING_FILE_CODE)) { return g_strdup (err->message); } return NULL; } void free_otps_gslist (GSList *otps, guint list_len) { otp_t *otp_data; for (guint i = 0; i < list_len; i++) { otp_data = g_slist_nth_data (otps, i); g_free (otp_data->type); g_free (otp_data->algo); g_free (otp_data->account_name); g_free (otp_data->issuer); gcry_free (otp_data->secret); } g_slist_free_full (otps, g_free); } static gboolean parse_data_and_update_db (AppData *app_data, const gchar *filename, const gchar *action_name) { GError *err = NULL; GSList *content = NULL; gchar *pwd = NULL; if (g_strcmp0 (action_name, ANDOTP_IMPORT_ACTION_NAME) == 0) { pwd = prompt_for_password (app_data, NULL, action_name, FALSE); if (pwd == NULL) { return FALSE; } } if (g_strcmp0 (action_name, ANDOTP_IMPORT_ACTION_NAME) == 0 || g_strcmp0 (action_name, ANDOTP_IMPORT_PLAIN_ACTION_NAME) == 0) { content = get_andotp_data (filename, pwd, app_data->db_data->max_file_size_from_memlock, g_strcmp0 (action_name, ANDOTP_IMPORT_ACTION_NAME) == 0 ? TRUE : FALSE , &err); } else if (g_strcmp0 (action_name, AUTHPLUS_IMPORT_ACTION_NAME) == 0) { content = get_authplus_data (filename, pwd, app_data->db_data->max_file_size_from_memlock, &err); } else if (g_strcmp0 (action_name, FREEOTPPLUS_IMPORT_ACTION_NAME) == 0) { content = get_freeotpplus_data (filename, &err); } else if (g_strcmp0 (action_name, AEGIS_IMPORT_ACTION_NAME) == 0) { content = get_aegis_data (filename, &err); } if (content == NULL && err != NULL) { gchar *msg = g_strconcat ("An error occurred while importing, so nothing has been added to the database. The error is:\n", err->message, NULL); show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_ERROR); g_free (msg); return FALSE; } gchar *err_msg = update_db_from_otps (content, app_data); if (err_msg != NULL) { show_message_dialog (app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free (err_msg); return FALSE; } if (pwd != NULL) { gcry_free (pwd); } free_otps_gslist (content, g_slist_length (content)); return TRUE; } OTPClient-2.4.6/src/imports.h000066400000000000000000000020151414446074000157630ustar00rootroot00000000000000#pragma once #include #include "data.h" G_BEGIN_DECLS #define ANDOTP_IMPORT_ACTION_NAME "import_andotp" #define ANDOTP_IMPORT_PLAIN_ACTION_NAME "import_andotp_plain" #define AUTHPLUS_IMPORT_ACTION_NAME "import_authplus" #define FREEOTPPLUS_IMPORT_ACTION_NAME "import_freeotpplus" #define AEGIS_IMPORT_ACTION_NAME "import_aegis" typedef struct _otp_t { gchar *type; gchar *algo; guint32 digits; union { guint32 period; guint64 counter; }; gchar *account_name; gchar *issuer; gchar *secret; } otp_t; void select_file_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); gchar *update_db_from_otps (GSList *otps, AppData *app_data); void free_otps_gslist (GSList *otps, guint list_len); G_END_DECLS OTPClient-2.4.6/src/liststore-misc.c000066400000000000000000000137321414446074000172520ustar00rootroot00000000000000#include #include #include #include "treeview.h" #include "liststore-misc.h" #include "gquarks.h" #include "gui-common.h" #include "common/common.h" typedef struct _otp_data { gchar *type; gchar *secret; gchar *algo; gint digits; gint period; gint64 counter; gboolean steam; } OtpData; static void set_otp_data (OtpData *otp_data, AppData *app_data, gint row_db_pos); static gboolean foreach_func_update_otps (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer user_data); static void clean_otp_data (OtpData *otp_data); gboolean traverse_liststore (gpointer user_data) { AppData *app_data = (AppData *)user_data; gtk_tree_model_foreach (GTK_TREE_MODEL(gtk_tree_view_get_model (app_data->tree_view)), foreach_func_update_otps, app_data); return TRUE; } void set_otp (GtkListStore *list_store, GtkTreeIter iter, AppData *app_data) { OtpData *otp_data = g_new0 (OtpData, 1); gint row_db_pos; gtk_tree_model_get (GTK_TREE_MODEL(list_store), &iter, COLUMN_POSITION_IN_DB, &row_db_pos, -1); set_otp_data (otp_data, app_data, row_db_pos); gint algo = get_algo_int_from_str (otp_data->algo); cotp_error_t otp_err; gchar *otp; if (g_ascii_strcasecmp (otp_data->type, "TOTP") == 0) { if (otp_data->steam) { otp = get_steam_totp (otp_data->secret, otp_data->period, &otp_err); } else { otp = get_totp (otp_data->secret, otp_data->digits, otp_data->period, algo, &otp_err); } } else { // clean previous HOTP info g_free (app_data->db_data->last_hotp); g_date_time_unref (app_data->db_data->last_hotp_update); otp = get_hotp (otp_data->secret, otp_data->counter, otp_data->digits, algo, &otp_err); app_data->db_data->last_hotp = g_strdup (otp); app_data->db_data->last_hotp_update = g_date_time_new_now_local (); } if (otp_err == INVALID_B32_INPUT) { clean_otp_data (otp_data); return; } gtk_list_store_set (list_store, &iter, COLUMN_OTP, otp, -1); app_data->last_user_activity = g_date_time_new_now_local (); g_free (otp); clean_otp_data (otp_data); } static gboolean foreach_func_update_otps (GtkTreeModel *model, GtkTreePath *path __attribute__((unused)), GtkTreeIter *iter, gpointer user_data) { AppData *app_data = (AppData *)user_data; gchar *otp_type, *otp; guint validity, period; gboolean only_a_minute_left, already_updated_once; gtk_tree_model_get (model, iter, COLUMN_TYPE, &otp_type, COLUMN_OTP, &otp, COLUMN_VALIDITY, &validity, COLUMN_PERIOD, &period, COLUMN_UPDATED, &already_updated_once, COLUMN_LESS_THAN_A_MINUTE, &only_a_minute_left, -1); if (otp != NULL && g_utf8_strlen (otp, -1) > 4 && g_ascii_strcasecmp (otp_type, "TOTP") == 0) { gboolean short_countdown = (period <= 60 || only_a_minute_left) ? TRUE : FALSE; gint remaining_seconds = (!short_countdown ? 119 : 59) - g_date_time_get_second (g_date_time_new_now_local()); gint token_validity = remaining_seconds % period; if (remaining_seconds % period == 60) { short_countdown = TRUE; } if ((remaining_seconds % period) == (period - 1)) { if ((app_data->show_next_otp) && (already_updated_once == FALSE)) { already_updated_once = TRUE; set_otp (GTK_LIST_STORE (model), *iter, app_data); } else { short_countdown = FALSE; already_updated_once = FALSE; token_validity = 0; gtk_list_store_set (GTK_LIST_STORE (model), iter, COLUMN_OTP, "", -1); } } gtk_list_store_set (GTK_LIST_STORE (model), iter, COLUMN_VALIDITY, token_validity, COLUMN_UPDATED, already_updated_once, COLUMN_LESS_THAN_A_MINUTE, short_countdown, -1); } g_free (otp_type); g_free (otp); // do not stop walking the store, check next row return FALSE; } static void set_otp_data (OtpData *otp_data, AppData *app_data, gint row_db_pos) { json_t *obj = json_array_get (app_data->db_data->json_data, row_db_pos); otp_data->type = g_strdup (json_string_value (json_object_get (obj, "type"))); otp_data->secret = secure_strdup (json_string_value (json_object_get (obj, "secret"))); otp_data->algo = g_strdup (json_string_value (json_object_get (obj, "algo"))); otp_data->digits = (gint)json_integer_value (json_object_get (obj, "digits")); const gchar *issuer = json_string_value (json_object_get (obj, "issuer")); otp_data->steam = ((issuer != NULL && g_ascii_strcasecmp (issuer, "steam") == 0) ? TRUE : FALSE); if (json_object_get (obj, "counter") != NULL) { GError *err = NULL; otp_data->counter = json_integer_value (json_object_get (obj, "counter")); // every time HOTP is accessed, counter must be increased json_object_set (obj, "counter", json_integer (otp_data->counter + 1)); update_and_reload_db (app_data, app_data->db_data, FALSE, &err); if (err != NULL && !g_error_matches (err, missing_file_gquark (), MISSING_FILE_CODE)) { g_printerr ("%s\n", err->message); } } else { otp_data->period = (gint)json_integer_value (json_object_get (obj, "period")); } } static void clean_otp_data (OtpData *otp_data) { g_free (otp_data->type); gcry_free (otp_data->secret); g_free (otp_data->algo); g_free (otp_data); } OTPClient-2.4.6/src/liststore-misc.h000066400000000000000000000004361414446074000172540ustar00rootroot00000000000000#pragma once G_BEGIN_DECLS #include "db-misc.h" gboolean traverse_liststore (gpointer user_data); void set_otp (GtkListStore *list_store, GtkTreeIter iter, AppData *app_data); G_END_DECLS OTPClient-2.4.6/src/lock-app.c000066400000000000000000000116071414446074000157760ustar00rootroot00000000000000#include #include #include #include #include "data.h" #include "get-builder.h" #include "gui-common.h" #include "message-dialogs.h" #include "otpclient.h" #include "lock-app.h" static void lock_app (GtkWidget *w __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; app_data->app_locked = TRUE; g_signal_emit_by_name (app_data->tree_view, "hide-all-otps"); GtkBuilder *builder = get_builder_from_partial_path (UI_PARTIAL_PATH); GtkWidget *dialog = GTK_WIDGET(gtk_builder_get_object (builder, "unlock_pwd_diag_id")); GtkWidget *pwd_entry = GTK_WIDGET(gtk_builder_get_object (builder, "unlock_entry_id")); g_signal_connect (pwd_entry, "icon-press", G_CALLBACK (icon_press_cb), NULL); g_signal_connect (pwd_entry, "activate", G_CALLBACK (send_ok_cb), NULL); gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(app_data->main_window)); gtk_widget_show_all (dialog); gint ret; gboolean retry = FALSE; do { ret = gtk_dialog_run (GTK_DIALOG(dialog)); if (ret == GTK_RESPONSE_OK) { if (g_strcmp0 (app_data->db_data->key, gtk_entry_get_text (GTK_ENTRY(pwd_entry))) != 0) { show_message_dialog (dialog, "The password is wrong, please try again.", GTK_MESSAGE_ERROR); gtk_entry_set_text (GTK_ENTRY(pwd_entry), ""); retry = TRUE; } else { retry = FALSE; app_data->app_locked = FALSE; app_data->last_user_activity = g_date_time_new_now_local (); app_data->source_id_last_activity = g_timeout_add_seconds (1, check_inactivity, app_data); gtk_widget_destroy (dialog); g_object_unref (builder); } } else { gtk_widget_destroy (dialog); g_object_unref (builder); GtkApplication *app = gtk_window_get_application (GTK_WINDOW (app_data->main_window)); destroy_cb (app_data->main_window, app_data); g_application_quit (G_APPLICATION(app)); } } while (ret == GTK_RESPONSE_OK && retry == TRUE); } static void signal_triggered_cb (GDBusConnection *connection __attribute__((unused)), const gchar *sender_name __attribute__((unused)), const gchar *object_path __attribute__((unused)), const gchar *interface_name __attribute__((unused)), const gchar *signal_name __attribute__((unused)), GVariant *parameters, gpointer user_data) { AppData *app_data = (AppData *)user_data; gboolean is_screen_locked; g_variant_get (parameters, "(b)", &is_screen_locked); if (is_screen_locked == TRUE && app_data->app_locked == FALSE && app_data->auto_lock == TRUE) { lock_app (NULL, app_data); } } gboolean check_inactivity (gpointer user_data) { AppData *app_data = (AppData *)user_data; if (app_data->inactivity_timeout > 0 && app_data->app_locked == FALSE) { GDateTime *now = g_date_time_new_now_local (); GTimeSpan diff = g_date_time_difference (now, app_data->last_user_activity); if (diff >= (G_USEC_PER_SEC * (GTimeSpan)app_data->inactivity_timeout)) { g_signal_emit_by_name (app_data->main_window, "lock-app"); g_date_time_unref (now); return FALSE; } g_date_time_unref (now); } return TRUE; } void setup_dbus_listener (AppData *app_data) { g_signal_new ("lock-app", G_TYPE_OBJECT, G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, 0, NULL, NULL, NULL, G_TYPE_NONE, 0); g_signal_connect (app_data->main_window, "lock-app", G_CALLBACK(lock_app), app_data); GtkBindingSet *binding_set = gtk_binding_set_by_class (GTK_WIDGET_GET_CLASS (app_data->main_window)); gtk_binding_entry_add_signal (binding_set, GDK_KEY_l, GDK_CONTROL_MASK, "lock-app", 0); //const gchar *services[] = { "org.cinnamon.ScreenSaver", "org.freedesktop.ScreenSaver", "org.gnome.ScreenSaver", "com.canonical.Unity" }; const gchar *paths[] = { "/org/cinnamon/ScreenSaver", "/org/freedesktop/ScreenSaver", "/org/gnome/ScreenSaver", "/com/canonical/Unity/Session" }; const gchar *interfaces[] = { "org.cinnamon.ScreenSaver", "org.freedesktop.ScreenSaver", "org.gnome.ScreenSaver", "com.canonical.Unity.Session" }; const gchar *signal_names[] = { "ActiveChanged", "ActiveChanged", "ActiveChanged", "Locked" }; app_data->connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); for (guint i = 0; i < DBUS_SERVICES; i++) { app_data->subscription_ids[i] = g_dbus_connection_signal_subscribe (app_data->connection, interfaces[i], interfaces[i], signal_names[i], paths[i], NULL, G_DBUS_SIGNAL_FLAGS_NONE, signal_triggered_cb, app_data, NULL); } } OTPClient-2.4.6/src/lock-app.h000066400000000000000000000002571414446074000160020ustar00rootroot00000000000000#pragma once #include "data.h" G_BEGIN_DECLS void setup_dbus_listener (AppData *app_data); gboolean check_inactivity (gpointer user_data); G_END_DECLS OTPClient-2.4.6/src/main.c000066400000000000000000000007131414446074000152100ustar00rootroot00000000000000#include #include "otpclient.h" #include "version.h" gint main (gint argc, gchar **argv) { GtkApplication *app = gtk_application_new ("com.github.paolostivanin.OTPClient", G_APPLICATION_FLAGS_NONE); g_set_application_name (PROJECT_NAME); g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); gint status = g_application_run (G_APPLICATION (app), argc, argv); g_object_unref (app); return status; } OTPClient-2.4.6/src/manual-add-cb.c000066400000000000000000000111601414446074000166470ustar00rootroot00000000000000#include #include "db-misc.h" #include "gui-common.h" #include "manual-add-cb.h" #include "gquarks.h" #include "message-dialogs.h" #include "get-builder.h" static void changed_otp_cb (GtkWidget *cb, gpointer user_data); static void steam_toggled_cb (GtkWidget * __attribute__((unused)), gpointer user_data); void add_data_dialog (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; Widgets *widgets = g_new0 (Widgets, 1); GtkBuilder *builder = get_builder_from_partial_path (UI_PARTIAL_PATH); widgets->dialog = GTK_WIDGET(gtk_builder_get_object (builder, "manual_add_diag_id")); widgets->otp_cb = GTK_WIDGET(gtk_builder_get_object (builder, "otp_combotext_id")); widgets->algo_cb = GTK_WIDGET(gtk_builder_get_object (builder, "algo_combotext_id")); widgets->steam_ck = GTK_WIDGET(gtk_builder_get_object (builder, "steam_ck_btn")); widgets->label_entry = GTK_WIDGET(gtk_builder_get_object (builder, "manual_diag_label_entry_id")); widgets->iss_entry = GTK_WIDGET(gtk_builder_get_object (builder, "manual_diag_issuer_entry_id")); widgets->sec_entry = GTK_WIDGET(gtk_builder_get_object (builder, "manual_diag_secret_entry_id")); widgets->digits_entry = GTK_WIDGET(gtk_builder_get_object (builder, "digits_entry_manual_diag")); widgets->period_entry = GTK_WIDGET(gtk_builder_get_object (builder, "period_entry_manual_diag")); widgets->counter_entry = GTK_WIDGET(gtk_builder_get_object (builder, "counter_entry_manual_diag")); gtk_widget_set_sensitive (widgets->counter_entry, FALSE); // by default TOTP is selected, so we don't need counter_cb gtk_window_set_transient_for (GTK_WINDOW(widgets->dialog), GTK_WINDOW(app_data->main_window)); g_signal_connect (widgets->sec_entry, "icon-press", G_CALLBACK(icon_press_cb), NULL); g_signal_connect (widgets->otp_cb, "changed", G_CALLBACK(changed_otp_cb), widgets); g_signal_connect (widgets->steam_ck, "toggled", G_CALLBACK(steam_toggled_cb), widgets); GError *err = NULL; gboolean retry = TRUE; gint result; do { result = gtk_dialog_run (GTK_DIALOG(widgets->dialog)); if (result == GTK_RESPONSE_OK) { if (parse_user_data (widgets, app_data->db_data)) { update_and_reload_db (app_data, app_data->db_data, TRUE, &err); if (err != NULL && !g_error_matches (err, missing_file_gquark (), MISSING_FILE_CODE)) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); } retry = FALSE; } } } while (result == GTK_RESPONSE_OK && retry == TRUE); gtk_widget_destroy (widgets->dialog); g_free (widgets); g_object_unref (builder); } static void changed_otp_cb (GtkWidget *cb, gpointer user_data) { Widgets *widgets = (Widgets *)user_data; // id 0 (FALSE) is totp, id 1 (TRUE) is hotp gtk_widget_set_sensitive (widgets->counter_entry, gtk_combo_box_get_active (GTK_COMBO_BOX(cb))); gtk_widget_set_sensitive (widgets->period_entry, !gtk_combo_box_get_active (GTK_COMBO_BOX(cb))); } static void steam_toggled_cb (GtkWidget *ck_btn __attribute__((unused)), gpointer user_data) { Widgets *widgets = (Widgets *)user_data; gboolean button_toggled = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widgets->steam_ck)); gtk_widget_set_sensitive (widgets->otp_cb, !button_toggled); gtk_widget_set_sensitive (widgets->algo_cb, !button_toggled); gtk_widget_set_sensitive (widgets->digits_entry, !button_toggled); gtk_widget_set_sensitive (widgets->period_entry, !button_toggled); gtk_widget_set_sensitive (widgets->counter_entry, !button_toggled); g_object_set (widgets->iss_entry, "editable", !button_toggled, NULL); if (button_toggled) { gtk_combo_box_set_active (GTK_COMBO_BOX(widgets->otp_cb), 0); // TOTP gtk_combo_box_set_active (GTK_COMBO_BOX(widgets->algo_cb), 0); // SHA1 gtk_entry_set_text (GTK_ENTRY(widgets->iss_entry), "Steam"); gtk_entry_set_text (GTK_ENTRY(widgets->period_entry), "30"); gtk_entry_set_text (GTK_ENTRY(widgets->digits_entry), "5"); } else { gtk_entry_set_text (GTK_ENTRY(widgets->iss_entry), ""); gtk_entry_set_text (GTK_ENTRY(widgets->digits_entry), ""); gtk_entry_set_text (GTK_ENTRY(widgets->period_entry), ""); gtk_entry_set_text (GTK_ENTRY(widgets->counter_entry), ""); } } OTPClient-2.4.6/src/manual-add-cb.h000066400000000000000000000006471414446074000166640ustar00rootroot00000000000000#pragma once typedef struct _widgets { GtkWidget *dialog; GtkWidget *otp_cb; GtkWidget *algo_cb; GtkWidget *steam_ck; GtkWidget *label_entry; GtkWidget *iss_entry; GtkWidget *sec_entry; GtkWidget *digits_entry; GtkWidget *period_entry; GtkWidget *counter_entry; } Widgets; gboolean parse_user_data (Widgets *widgets, DatabaseData *db_data); OTPClient-2.4.6/src/message-dialogs.c000066400000000000000000000032221414446074000173260ustar00rootroot00000000000000#include void show_message_dialog (GtkWidget *parent, const gchar *message, GtkMessageType message_type) { static GtkWidget *dialog = NULL; dialog = gtk_message_dialog_new (parent == NULL ? NULL : GTK_WINDOW(parent), GTK_DIALOG_MODAL, message_type, GTK_BUTTONS_OK, "%s", message); gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG(dialog), message); gtk_dialog_run (GTK_DIALOG(dialog)); gtk_widget_destroy (dialog); } gboolean get_confirmation_from_dialog (GtkWidget *parent, const gchar *message) { static GtkWidget *dialog = NULL; gboolean confirm; dialog = gtk_dialog_new_with_buttons ("Confirm", GTK_WINDOW (parent), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, "OK", GTK_RESPONSE_OK, "Cancel", GTK_RESPONSE_CANCEL, NULL); gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); GtkWidget *content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); GtkWidget *label = gtk_label_new (NULL); gtk_label_set_markup (GTK_LABEL (label), message); gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER); gtk_container_add (GTK_CONTAINER (content_area), label); gtk_widget_show_all (dialog); gint result = gtk_dialog_run (GTK_DIALOG (dialog)); switch (result) { case GTK_RESPONSE_OK: confirm = TRUE; break; case GTK_RESPONSE_CANCEL: default: confirm = FALSE; break; } gtk_widget_destroy (dialog); return confirm; } OTPClient-2.4.6/src/message-dialogs.h000066400000000000000000000005741414446074000173420ustar00rootroot00000000000000#pragma once #include G_BEGIN_DECLS void show_message_dialog (GtkWidget *parent, const gchar *message, GtkMessageType message_type); gboolean get_confirmation_from_dialog (GtkWidget *parent, const gchar *message); G_END_DECLS OTPClient-2.4.6/src/otpclient.h000066400000000000000000000031751414446074000162770ustar00rootroot00000000000000#pragma once #include "treeview.h" G_BEGIN_DECLS #define HOTP_RATE_LIMIT_IN_SEC 3 #define NOTIFICATION_ID "otp-copied" void activate (GtkApplication *app, gpointer user_data); void add_data_dialog (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void webcam_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void screenshot_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void add_qr_from_file (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void add_qr_from_clipboard (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void edit_selected_row_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void settings_dialog_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void shortcuts_window_cb (GSimpleAction *simple, GVariant *parameter, gpointer user_data); void destroy_cb (GtkWidget *window, gpointer user_data); G_END_DECLS OTPClient-2.4.6/src/parse-data.c000066400000000000000000000156341414446074000163150ustar00rootroot00000000000000#include #include #include #include #include "otpclient.h" #include "db-misc.h" #include "manual-add-cb.h" #include "gquarks.h" #include "message-dialogs.h" #include "gui-common.h" #include "common/common.h" static gboolean is_input_valid (GtkWidget *dialog, const gchar *acc_label, const gchar *acc_iss, const gchar *secret, const gchar *digits, const gchar *period, gboolean period_active, const gchar *counter, gboolean counter_active); static gboolean str_is_only_num_or_alpha (const gchar *string); static gboolean str_is_only_num (const gchar *string); static json_t *get_json_obj (Widgets *widgets, const gchar *acc_label, const gchar *acc_iss, const gchar *acc_key, const gchar *digits, const gchar *period, const gchar *counter); gboolean parse_user_data (Widgets *widgets, DatabaseData *db_data) { json_t *obj; const gchar *acc_label = gtk_entry_get_text (GTK_ENTRY (widgets->label_entry)); const gchar *acc_iss = gtk_entry_get_text (GTK_ENTRY (widgets->iss_entry)); const gchar *acc_key = gtk_entry_get_text (GTK_ENTRY (widgets->sec_entry)); const gchar *digits = gtk_entry_get_text (GTK_ENTRY (widgets->digits_entry)); const gchar *period = gtk_entry_get_text (GTK_ENTRY (widgets->period_entry)); const gchar *counter = gtk_entry_get_text (GTK_ENTRY (widgets->counter_entry)); gboolean period_active = gtk_widget_get_sensitive (widgets->period_entry); gboolean counter_active = gtk_widget_get_sensitive (widgets->counter_entry); gchar *acc_key_trimmed = g_trim_whitespace (acc_key); if (is_input_valid (widgets->dialog, acc_label, acc_iss, acc_key_trimmed, digits, period, period_active, counter, counter_active)) { obj = get_json_obj (widgets, acc_label, acc_iss, acc_key_trimmed, digits, period, counter); guint32 hash = json_object_get_hash (obj); if (g_slist_find_custom (db_data->objects_hash, GUINT_TO_POINTER (hash), check_duplicate) == NULL) { db_data->objects_hash = g_slist_append (db_data->objects_hash, g_memdupX (&hash, sizeof (guint))); db_data->data_to_add = g_slist_append (db_data->data_to_add, obj); } else { g_print ("[INFO] Duplicate element not added\n"); } } else { gcry_free (acc_key_trimmed); return FALSE; } gcry_free (acc_key_trimmed); return TRUE; } static gboolean is_input_valid (GtkWidget *dialog, const gchar *acc_label, const gchar *acc_iss, const gchar *secret, const gchar *digits, const gchar *period, gboolean period_active, const gchar *counter, gboolean counter_active) { if (g_utf8_strlen (acc_label, -1) == 0 || g_utf8_strlen (secret, -1) == 0) { show_message_dialog (dialog, "Label and/or secret can't be empty", GTK_MESSAGE_ERROR); return FALSE; } if (!g_str_is_ascii (acc_label) || !g_str_is_ascii (acc_iss)) { gchar *msg = g_strconcat ("Only ASCII characters are supported. Entry with label '", acc_label, "' will not be added.", NULL); show_message_dialog (dialog, msg, GTK_MESSAGE_ERROR); g_free (msg); return FALSE; } if (!str_is_only_num_or_alpha (secret)) { gchar *msg = g_strconcat ("Secret can contain only characters from the english alphabet and digits. Entry with label '", acc_label, "' will not be added.", NULL); show_message_dialog (dialog, msg, GTK_MESSAGE_ERROR); g_free (msg); return FALSE; } if (!str_is_only_num (digits) || g_ascii_strtoll (digits, NULL, 10) < 4 || g_ascii_strtoll (digits, NULL, 10) > 10) { gchar *msg = g_strconcat ("The digits entry should contain only digits and the value should be between 4 and 10 inclusive.\n" "Entry with label '", acc_label, "' will not be added.", NULL); show_message_dialog (dialog, msg, GTK_MESSAGE_ERROR); g_free (msg); return FALSE; } if (period_active && (!str_is_only_num (period) || g_ascii_strtoll (period, NULL, 10) < 10 || g_ascii_strtoll (period, NULL, 10) > 120)) { gchar *msg = g_strconcat ("The period entry should contain only digits and the value should be between 10 and 120 (inclusive).\n" "Entry with label '", acc_label, "' will not be added.", NULL); show_message_dialog (dialog, msg, GTK_MESSAGE_ERROR); g_free (msg); return FALSE; } if (counter_active && (!str_is_only_num (counter) || g_ascii_strtoll (counter, NULL, 10) < 1 || g_ascii_strtoll (counter, NULL, 10) == G_MAXINT64)) { gchar *msg = g_strconcat ("The counter entry should contain only digits and the value should be between 1 and G_MAXINT64-1 (inclusive).\n" "Entry with label '", acc_label, "' will not be added.", NULL); show_message_dialog (dialog, msg, GTK_MESSAGE_ERROR); g_free (msg); return FALSE; } return TRUE; } static gboolean str_is_only_num_or_alpha (const gchar *string) { for (gint i = 0; i < strlen (string); i++) { if (!g_ascii_isalnum (string[i])) { return FALSE; } } return TRUE; } static gboolean str_is_only_num (const gchar *string) { for (gint i = 0; i < strlen (string); i++) { if (!g_ascii_isdigit (string[i])) { return FALSE; } } return TRUE; } static json_t * get_json_obj (Widgets *widgets, const gchar *acc_label, const gchar *acc_iss, const gchar *acc_key, const gchar *digits, const gchar *period, const gchar *counter) { gchar *type = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (widgets->otp_cb)); gchar *algo = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (widgets->algo_cb)); gint digits_int = (gint)g_ascii_strtoll (digits, NULL, 10); gint period_int = (gint)g_ascii_strtoll (period, NULL, 10); gint64 ctr = g_ascii_strtoll (counter, NULL, 10); json_t *jn = build_json_obj (type, acc_label, acc_iss, acc_key, digits_int, algo, period_int, ctr); g_free (type); g_free (algo); return jn; } OTPClient-2.4.6/src/parse-uri.c000066400000000000000000000100001414446074000161610ustar00rootroot00000000000000#include #include "gui-common.h" #include "imports.h" #include "common/common.h" static void parse_uri (const gchar *uri, GSList **otps); static void parse_parameters (const gchar *modified_uri, otp_t *otp); void set_otps_from_uris (const gchar *otpauth_uris, GSList **otps) { gchar **uris = g_strsplit (otpauth_uris, "\n", -1); guint i = 0, uris_len = g_strv_length (uris); gchar *haystack = NULL; if (uris_len > 0) { for (; i < uris_len; i++) { haystack = g_strrstr (uris[i], "otpauth"); if (haystack != NULL) { parse_uri (haystack, otps); } } } g_strfreev (uris); } static void parse_uri (const gchar *uri, GSList **otps) { const gchar *uri_copy = uri; if (g_ascii_strncasecmp (uri_copy, "otpauth://", 10) != 0) { return; } uri_copy += 10; otp_t *otp = g_new0 (otp_t, 1); // set default digits value to 6. If something else is specified, it will be read later on otp->digits = 6; if (g_ascii_strncasecmp (uri_copy, "totp/", 5) == 0) { otp->type = g_strdup ("TOTP"); otp->period = 30; } else if (g_ascii_strncasecmp (uri_copy, "hotp/", 5) == 0) { otp->type = g_strdup ("HOTP"); } else { g_free (otp); return; } uri_copy += 5; if (g_strrstr (uri_copy, "algorithm") == NULL) { // if the uri doesn't contain the algo parameter, fallback to sha1 otp->algo = g_strdup ("SHA1"); } parse_parameters (uri_copy, otp); *otps = g_slist_append (*otps, g_memdupX (otp, sizeof (otp_t))); g_free (otp); } static void parse_parameters (const gchar *modified_uri, otp_t *otp) { const gchar *mod_uri_copy = modified_uri; gchar **tokens = g_strsplit (mod_uri_copy, "?", -1); gchar *escaped_issuer_and_label = g_uri_unescape_string (tokens[0], NULL); mod_uri_copy += g_utf8_strlen (tokens[0], -1) + 1; // "issuer:label?" g_strfreev (tokens); tokens = g_strsplit (escaped_issuer_and_label, ":", -1); if (tokens[0] && tokens[1]) { otp->issuer = g_strdup (g_strstrip (tokens[0])); otp->account_name = g_strdup (g_strstrip (tokens[1])); } else { otp->account_name = g_strdup (g_strstrip (tokens[0])); } g_free (escaped_issuer_and_label); g_strfreev (tokens); tokens = g_strsplit (mod_uri_copy, "&", -1); gint i = 0; while (tokens[i]) { if (g_ascii_strncasecmp (tokens[i], "secret=", 7) == 0) { tokens[i] += 7; otp->secret = secure_strdup (tokens[i]); tokens[i] -= 7; } else if (g_ascii_strncasecmp (tokens[i], "algorithm=", 10) == 0) { tokens[i] += 10; if (g_ascii_strcasecmp (tokens[i], "SHA1") == 0 || g_ascii_strcasecmp (tokens[i], "SHA256") == 0 || g_ascii_strcasecmp (tokens[i], "SHA512") == 0) { otp->algo = g_ascii_strup (tokens[i], -1); } tokens[i] -= 10; } else if (g_ascii_strncasecmp (tokens[i], "period=", 7) == 0) { tokens[i] += 7; otp->period = (guint8) g_ascii_strtoll (tokens[i], NULL, 10); tokens[i] -= 7; } else if (g_ascii_strncasecmp (tokens[i], "digits=", 7) == 0) { tokens[i] += 7; otp->digits = (guint8) g_ascii_strtoll (tokens[i], NULL, 10); tokens[i] -= 7; } else if (g_ascii_strncasecmp (tokens[i], "issuer=", 7) == 0) { tokens[i] += 7; if (!otp->issuer) { otp->issuer = g_strdup (g_strstrip (tokens[i])); } tokens[i] -= 7; } else if (g_ascii_strncasecmp (tokens[i], "counter=", 8) == 0) { tokens[i] += 8; otp->counter = (guint64)g_ascii_strtoll (tokens[i], NULL, 10); tokens[i] -= 8; } i++; } g_strfreev (tokens); } OTPClient-2.4.6/src/parse-uri.h000066400000000000000000000002421414446074000161750ustar00rootroot00000000000000#pragma once #include G_BEGIN_DECLS void set_otps_from_uris (const gchar *otpauth_uris, GSList **otps); G_END_DECLS OTPClient-2.4.6/src/password-cb.c000066400000000000000000000151331414446074000165120ustar00rootroot00000000000000#include #include #include "gui-common.h" #include "message-dialogs.h" #include "get-builder.h" #include "otpclient.h" #include "common/common.h" typedef struct _entrywidgets { GtkWidget *entry_old; GtkWidget *entry1; GtkWidget *entry2; gboolean retry; gchar *pwd; gchar *cur_pwd; } EntryWidgets; static void check_pwd_cb (GtkWidget *entry, gpointer user_data); static void password_cb (GtkWidget *entry, gpointer *pwd); gchar * prompt_for_password (AppData *app_data, gchar *current_key, const gchar *action_name, gboolean is_export_pwd) { EntryWidgets *entry_widgets = g_new0 (EntryWidgets, 1); entry_widgets->retry = FALSE; GtkBuilder *builder = get_builder_from_partial_path (UI_PARTIAL_PATH); GtkWidget *dialog; gboolean pwd_must_be_checked = TRUE; gboolean file_exists = g_file_test (app_data->db_data->db_path, G_FILE_TEST_EXISTS); if ((file_exists == TRUE || action_name != NULL) && current_key == NULL && is_export_pwd == FALSE) { // decrypt dialog, just one field pwd_must_be_checked = FALSE; dialog = GTK_WIDGET(gtk_builder_get_object (builder, "decpwd_diag_id")); gchar *text = NULL, *markup = NULL; if (action_name == NULL) { markup = g_markup_printf_escaped ("%s %s", "Enter the decryption password for\n", app_data->db_data->db_path); } else { text = g_strdup ("Enter the decryption password"); } GtkLabel *label = GTK_LABEL(gtk_builder_get_object (builder, "decpwd_label_id")); if (markup != NULL) { gtk_label_set_markup (label, markup); g_free (markup); } else { gtk_label_set_text (label, text); g_free (text); } entry_widgets->entry1 = GTK_WIDGET(gtk_builder_get_object (builder,"decpwddiag_entry_id")); g_signal_connect (entry_widgets->entry1, "activate", G_CALLBACK (send_ok_cb), NULL); g_signal_connect (entry_widgets->entry1, "icon-press", G_CALLBACK (icon_press_cb), NULL); } else if ((file_exists == FALSE && current_key == NULL) || is_export_pwd == TRUE) { // new db dialog, 2 fields dialog = GTK_WIDGET(gtk_builder_get_object (builder, "newdb_pwd_diag_id")); entry_widgets->entry1 = GTK_WIDGET(gtk_builder_get_object (builder,"newdb_pwd_diag_entry1_id")); entry_widgets->entry2 = GTK_WIDGET(gtk_builder_get_object (builder,"newdb_pwd_diag_entry2_id")); g_signal_connect (entry_widgets->entry2, "activate", G_CALLBACK (send_ok_cb), NULL); g_signal_connect (entry_widgets->entry1, "icon-press", G_CALLBACK (icon_press_cb), NULL); g_signal_connect (entry_widgets->entry2, "icon-press", G_CALLBACK (icon_press_cb), NULL); } else { // change pwd dialog, 3 fields if (current_key == NULL) { show_message_dialog (app_data->main_window, "ERROR: current_key cannot be NULL", GTK_MESSAGE_ERROR); g_free (entry_widgets); g_object_unref (builder); return NULL; } dialog = GTK_WIDGET(gtk_builder_get_object (builder, "changepwd_diag_id")); entry_widgets->cur_pwd = secure_strdup (current_key); entry_widgets->entry_old = GTK_WIDGET(gtk_builder_get_object (builder,"changepwd_diag_currententry_id")); entry_widgets->entry1 = GTK_WIDGET(gtk_builder_get_object (builder,"changepwd_diag_newentry1_id")); entry_widgets->entry2 = GTK_WIDGET(gtk_builder_get_object (builder,"changepwd_diag_newentry2_id")); g_signal_connect (entry_widgets->entry2, "activate", G_CALLBACK (send_ok_cb), NULL); g_signal_connect (entry_widgets->entry1, "icon-press", G_CALLBACK (icon_press_cb), NULL); g_signal_connect (entry_widgets->entry2, "icon-press", G_CALLBACK (icon_press_cb), NULL); g_signal_connect (entry_widgets->entry_old, "icon-press", G_CALLBACK (icon_press_cb), NULL); } gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(app_data->main_window)); gtk_widget_show_all (dialog); gint ret; do { ret = gtk_dialog_run (GTK_DIALOG(dialog)); if (ret == GTK_RESPONSE_OK) { if ((file_exists == TRUE || action_name != NULL) && pwd_must_be_checked == FALSE) { password_cb (entry_widgets->entry1, (gpointer *)&entry_widgets->pwd); } else { check_pwd_cb (entry_widgets->entry1, (gpointer)entry_widgets); } } } while (ret == GTK_RESPONSE_OK && entry_widgets->retry == TRUE); gchar *pwd = NULL; if (entry_widgets->pwd != NULL) { gcry_free (current_key); gsize len = strlen (entry_widgets->pwd) + 1; pwd = gcry_calloc_secure (len, 1); strncpy (pwd, entry_widgets->pwd, len); gcry_free (entry_widgets->pwd); } if (entry_widgets->cur_pwd != NULL) { gcry_free (entry_widgets->cur_pwd); } g_free (entry_widgets); gtk_widget_destroy (dialog); g_object_unref (builder); return pwd; } static void check_pwd_cb (GtkWidget *entry, gpointer user_data) { EntryWidgets *entry_widgets = (EntryWidgets *) user_data; if (entry_widgets->cur_pwd != NULL && g_strcmp0 (gtk_entry_get_text (GTK_ENTRY(entry_widgets->entry_old)), entry_widgets->cur_pwd) != 0) { show_message_dialog (gtk_widget_get_toplevel (entry), "Old password doesn't match", GTK_MESSAGE_ERROR); entry_widgets->retry = TRUE; return; } if (gtk_entry_get_text_length (GTK_ENTRY(entry_widgets->entry1)) < 6) { show_message_dialog (gtk_widget_get_toplevel (entry), "Password must be at least 6 characters.", GTK_MESSAGE_ERROR); entry_widgets->retry = TRUE; return; } if (g_strcmp0 (gtk_entry_get_text (GTK_ENTRY(entry_widgets->entry1)), gtk_entry_get_text (GTK_ENTRY(entry_widgets->entry2))) == 0) { password_cb (entry, (gpointer *)&entry_widgets->pwd); entry_widgets->retry = FALSE; } else { show_message_dialog (gtk_widget_get_toplevel (entry), "Passwords mismatch", GTK_MESSAGE_ERROR); entry_widgets->retry = TRUE; } } static void password_cb (GtkWidget *entry, gpointer *pwd) { const gchar *text = gtk_entry_get_text (GTK_ENTRY(entry)); gsize len = strlen (text) + 1; *pwd = gcry_calloc_secure (len, 1); strncpy (*pwd, text, len); GtkWidget *top_level = gtk_widget_get_toplevel (entry); gtk_dialog_response (GTK_DIALOG (top_level), GTK_RESPONSE_CLOSE); } OTPClient-2.4.6/src/password-cb.h000066400000000000000000000003101414446074000165060ustar00rootroot00000000000000#pragma once #include #include "data.h" G_BEGIN_DECLS gchar *prompt_for_password (AppData *app_data, gchar *current_key, const gchar *action_name, gboolean is_export_pwd); G_END_DECLS OTPClient-2.4.6/src/qrcode-parser.c000066400000000000000000000077011414446074000170370ustar00rootroot00000000000000#include #include #include #include #include "gui-common.h" #include "common/common.h" typedef struct _image_data_t { gulong width; gulong height; guchar *raw_data; } ImageData; static gchar *set_data_from_png (const gchar *png_path, ImageData *image_data); gchar * parse_qrcode (const gchar *png_path, gchar **otpauth_uri) { zbar_image_scanner_t *scanner = zbar_image_scanner_create (); zbar_image_scanner_set_config (scanner, ZBAR_NONE, ZBAR_CFG_ENABLE, 1); ImageData *image_data = g_new0 (ImageData, 1); gchar *err_msg = set_data_from_png (png_path, image_data); if (err_msg != NULL) { g_free (image_data); zbar_image_scanner_destroy (scanner); return err_msg; } zbar_image_t *image = zbar_image_create (); #ifdef ZBAR_OLD_LIB zbar_image_set_format (image, *(int*)"Y800"); #else zbar_image_set_format (image, zbar_fourcc ('Y','8','0','0')); #endif zbar_image_set_size (image, image_data->width, image_data->height); zbar_image_set_data (image, image_data->raw_data, image_data->width * image_data->height, zbar_image_free_data); gint n = zbar_scan_image (scanner, image); if (n < 1) { zbar_image_destroy (image); zbar_image_scanner_destroy (scanner); g_free (image_data); return g_strdup ("Couldn't find a valid qrcode"); } const zbar_symbol_t *symbol = zbar_image_first_symbol (image); for (; symbol; symbol = zbar_symbol_next (symbol)) { *otpauth_uri = secure_strdup (zbar_symbol_get_data (symbol)); } zbar_image_destroy (image); zbar_image_scanner_destroy (scanner); g_free (image_data); return NULL; } static gchar * set_data_from_png (const gchar *png_path, ImageData *image_data) { FILE *file = g_fopen (png_path, "rb"); if (file == NULL) { return g_strdup ("Couldn't open the PNG file"); } guchar sig[8]; if (fread (sig, 1, 8, file) != 8) { fclose (file); return g_strdup ("Couldn't read signature from PNG file"); } if (!png_check_sig (sig, 8)) { fclose (file); return g_strdup ("The file is not a PNG image"); } png_structp png = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (png == NULL) { fclose (file); return g_strdup ("png_create_read_struct failed"); } png_infop info = png_create_info_struct (png); if (!info) { png_destroy_read_struct (&png, NULL, NULL); fclose (file); return g_strdup ("png_create_info_struct failed"); } if (setjmp (png_jmpbuf (png))) { png_destroy_read_struct (&png, &info, NULL); fclose (file); return g_strdup ("setjmp failed"); } png_init_io (png, file); png_set_sig_bytes (png, 8); png_read_info (png, info); gint color = png_get_color_type (png, info); gint bits = png_get_bit_depth (png, info); if (color & PNG_COLOR_TYPE_PALETTE) { png_set_palette_to_rgb (png); } if (color == PNG_COLOR_TYPE_GRAY && bits < 8) { png_set_expand_gray_1_2_4_to_8 (png); } if (bits == 16) { png_set_strip_16 (png); } if (color & PNG_COLOR_MASK_ALPHA) { png_set_strip_alpha (png); } if (color & PNG_COLOR_MASK_COLOR) { png_set_rgb_to_gray_fixed (png, 1, -1, -1); } image_data->width = (guint)png_get_image_width (png, info); image_data->height = (guint)png_get_image_height (png, info); image_data->raw_data = (guchar *)g_malloc0 (image_data->width * image_data->height); png_bytep rows[image_data->height]; for (gint i = 0; i < image_data->height; i++) { rows[i] = image_data->raw_data + (image_data->width * i); } png_read_image (png, rows); png_read_end (png, NULL); png_destroy_read_struct (&png, &info, NULL); fclose (file); return NULL; } OTPClient-2.4.6/src/qrcode-parser.h000066400000000000000000000002351414446074000170370ustar00rootroot00000000000000#pragma once #include G_BEGIN_DECLS gchar *parse_qrcode (const gchar *png_path, gchar **otpauth_uri); G_END_DECLS OTPClient-2.4.6/src/screenshot-add-cb.c000066400000000000000000000064751414446074000175640ustar00rootroot00000000000000#include #include #include #include #include #include #include "imports.h" #include "message-dialogs.h" #include "gui-common.h" #include "add-common.h" #include "qrcode-parser.h" void screenshot_cb (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; GError *err = NULL; GDBusConnection *connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &err); if (err != NULL) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); g_clear_error (&err); return; } const gchar *interface = "org.gnome.Shell.Screenshot"; const gchar *object_path = "/org/gnome/Shell/Screenshot"; GVariant *res = g_dbus_connection_call_sync (connection, interface, object_path, interface, "SelectArea", NULL, NULL, G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, &err); if (err != NULL) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); g_object_unref (connection); g_clear_error (&err); return; } gint x, y, width, height; g_variant_get (res, "(iiii)", &x, &y, &width, &height); g_variant_unref (res); #ifndef USE_FLATPAK_APP_FOLDER gchar *filename = g_build_filename (g_get_tmp_dir (), "qrcode.png", NULL); #else gchar *filename = g_build_filename (g_get_user_data_dir (), "qrcode.png", NULL); #endif res = g_dbus_connection_call_sync (connection, interface, object_path, interface, "ScreenshotArea", g_variant_new ("(iiiibs)", x, y, width, height, TRUE, filename), NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &err); if (err != NULL) { show_message_dialog (app_data->main_window, err->message, GTK_MESSAGE_ERROR); g_clear_error (&err); g_free (filename); g_object_unref (connection); return; } gboolean success; gchar *out_filename; g_variant_get (res, "(bs)", &success, &out_filename); if (!success) { show_message_dialog (app_data->main_window, "Failed to get screenshot using ScreenshotArea", GTK_MESSAGE_ERROR); g_variant_unref (res); g_free (filename); g_object_unref (connection); return; } gchar *otpauth_uri = NULL; gchar *err_msg = parse_qrcode (out_filename, &otpauth_uri); if (err_msg != NULL) { show_message_dialog (app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free (err_msg); g_variant_unref (res); g_free (filename); g_object_unref (connection); return; } g_unlink (filename); err_msg = add_data_to_db (otpauth_uri, app_data); if (err_msg != NULL) { show_message_dialog (app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free (err_msg); // no need to return here as we have to clean-up also the following stuff } else { show_message_dialog (app_data->main_window, "QRCode successfully imported from the screenshot", GTK_MESSAGE_INFO); } gcry_free (otpauth_uri); g_variant_unref (res); g_free (filename); g_object_unref (connection); } OTPClient-2.4.6/src/settings.c000066400000000000000000000106641414446074000161320ustar00rootroot00000000000000#include #include "otpclient.h" #include "message-dialogs.h" #include "get-builder.h" void settings_dialog_cb (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; gchar *cfg_file_path; #ifndef USE_FLATPAK_APP_FOLDER cfg_file_path = g_build_filename (g_get_user_config_dir (), "otpclient.cfg", NULL); #else cfg_file_path = g_build_filename (g_get_user_data_dir (), "otpclient.cfg", NULL); #endif GError *err = NULL; GKeyFile *kf = g_key_file_new (); if (!g_key_file_load_from_file (kf, cfg_file_path, G_KEY_FILE_NONE, &err)) { gchar *msg = g_strconcat ("Couldn't get data from config file: ", err->message, NULL); show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_ERROR); g_free (msg); g_free (cfg_file_path); g_key_file_free (kf); return; } // if key is not found, g_key_file_get_boolean returns FALSE and g_key_file_get_integer returns 0. // Therefore, having these values as default is exactly what we want. So no need to check whether or not the key is missing. app_data->show_next_otp = g_key_file_get_boolean (kf, "config", "show_next_otp", NULL); app_data->disable_notifications = g_key_file_get_boolean (kf, "config", "notifications", NULL); app_data->search_column = g_key_file_get_integer (kf, "config", "search_column", NULL); app_data->auto_lock = g_key_file_get_boolean (kf, "config", "auto_lock", NULL); app_data->inactivity_timeout = g_key_file_get_integer (kf, "config", "inactivity_timeout", NULL); GtkBuilder *builder = get_builder_from_partial_path(UI_PARTIAL_PATH); GtkWidget *dialog = GTK_WIDGET(gtk_builder_get_object (builder, "settings_diag_id")); GtkWidget *sno_switch = GTK_WIDGET(gtk_builder_get_object (builder, "nextotp_switch_id")); GtkWidget *dn_switch = GTK_WIDGET(gtk_builder_get_object (builder, "notif_switch_id")); GtkWidget *sc_cb = GTK_WIDGET(gtk_builder_get_object (builder, "search_by_cb_id")); GtkWidget *al_switch = GTK_WIDGET(gtk_builder_get_object (builder, "autolock_switch_id")); GtkWidget *inactivity_cb = GTK_WIDGET(gtk_builder_get_object (builder, "autolock_inactive_cb_id")); gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(app_data->main_window)); gtk_switch_set_active (GTK_SWITCH(sno_switch), app_data->show_next_otp); gtk_switch_set_active (GTK_SWITCH(dn_switch), app_data->disable_notifications); gtk_switch_set_active (GTK_SWITCH(al_switch), app_data->auto_lock); gchar *active_id_string = g_strdup_printf ("%d", app_data->search_column); gtk_combo_box_set_active_id (GTK_COMBO_BOX(sc_cb), active_id_string); g_free (active_id_string); active_id_string = g_strdup_printf ("%d", app_data->inactivity_timeout); gtk_combo_box_set_active_id (GTK_COMBO_BOX(inactivity_cb), active_id_string); g_free (active_id_string); gtk_widget_show_all (dialog); switch (gtk_dialog_run (GTK_DIALOG(dialog))) { case GTK_RESPONSE_OK: app_data->show_next_otp = gtk_switch_get_active (GTK_SWITCH(sno_switch)); app_data->disable_notifications = gtk_switch_get_active (GTK_SWITCH(dn_switch)); app_data->search_column = (gint)g_ascii_strtoll (gtk_combo_box_get_active_id (GTK_COMBO_BOX(sc_cb)), NULL, 10); app_data->auto_lock = gtk_switch_get_active (GTK_SWITCH(al_switch)); app_data->inactivity_timeout = (gint)g_ascii_strtoll (gtk_combo_box_get_active_id (GTK_COMBO_BOX(inactivity_cb)), NULL, 10); g_key_file_set_boolean (kf, "config", "show_next_otp", app_data->show_next_otp); g_key_file_set_boolean (kf, "config", "notifications", app_data->disable_notifications); g_key_file_set_integer (kf, "config", "search_column", app_data->search_column); g_key_file_set_boolean (kf, "config", "auto_lock", app_data->auto_lock); g_key_file_set_integer (kf, "config", "inactivity_timeout", app_data->inactivity_timeout); g_key_file_save_to_file (kf, cfg_file_path, NULL); gtk_tree_view_set_search_column (GTK_TREE_VIEW(app_data->tree_view), app_data->search_column + 1); break; case GTK_RESPONSE_CANCEL: break; } g_free (cfg_file_path); g_key_file_free (kf); gtk_widget_destroy (dialog); g_object_unref (builder); } OTPClient-2.4.6/src/shortcuts.c000066400000000000000000000022341414446074000163220ustar00rootroot00000000000000#include #include "message-dialogs.h" #include "get-builder.h" #include "data.h" void shortcuts_window_cb (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; if (gtk_get_major_version () == 3 && gtk_get_minor_version () < 20) { const gchar *msg = "Your GTK+ version is too old and does not support this feature.\n" "To get a list of available keyboard shortcuts please have a look at:\n" "https://github.com/paolostivanin/OTPClient/wiki/KeyboardShortcuts"; show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_ERROR); return; } #if GTK_CHECK_VERSION(3, 20, 0) GtkBuilder *builder = get_builder_from_partial_path ("share/otpclient/shortcuts.ui"); GtkWidget *overlay = GTK_WIDGET (gtk_builder_get_object (builder, "shortcuts-otpclient")); gtk_window_set_transient_for (GTK_WINDOW(overlay), GTK_WINDOW(app_data->main_window)); gtk_widget_show (overlay); g_object_unref (builder); #endif } OTPClient-2.4.6/src/treeview.c000066400000000000000000000267011414446074000161230ustar00rootroot00000000000000#include #include #include "otpclient.h" #include "liststore-misc.h" #include "gui-common.h" #include "message-dialogs.h" typedef struct _parsed_json_data { gchar **types; gchar **labels; gchar **issuers; GArray *periods; } ParsedData; static void set_json_data (json_t *array, ParsedData *pjd); static void add_data_to_model (DatabaseData *db_data, GtkListStore *store); static void add_columns (GtkTreeView *tree_view); static void hide_all_otps_cb (GtkTreeView *tree_view, gpointer user_data); static gboolean clear_all_otps (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer user_data); static void free_pjd (ParsedData *pjd); void create_treeview (AppData *app_data) { g_signal_new ("hide-all-otps", G_TYPE_OBJECT, G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, 0, NULL, NULL, NULL, G_TYPE_NONE, 0); app_data->tree_view = GTK_TREE_VIEW(gtk_builder_get_object (app_data->builder, "treeview_id")); GtkBindingSet *binding_set = gtk_binding_set_by_class (GTK_TREE_VIEW_GET_CLASS(app_data->tree_view)); gtk_binding_entry_add_signal (binding_set, GDK_KEY_h, GDK_CONTROL_MASK, "hide-all-otps", 0); GtkListStore *list_store = gtk_list_store_new (NUM_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_INT); add_columns (app_data->tree_view); add_data_to_model (app_data->db_data, list_store); gtk_tree_view_set_model (app_data->tree_view, GTK_TREE_MODEL(list_store)); // model has id 0 for type, 1 for label, 2 for issuer, etc while ui file has 0 label and 1 issuer. That's why the "+1" gtk_tree_view_set_search_column (GTK_TREE_VIEW(app_data->tree_view), app_data->search_column + 1); // signal emitted when row is selected g_signal_connect (app_data->tree_view, "row-activated", G_CALLBACK(row_selected_cb), app_data); // signal emitted when CTRL+H is pressed g_signal_connect (app_data->tree_view, "hide-all-otps", G_CALLBACK(hide_all_otps_cb), app_data); g_object_unref (list_store); } void update_model (AppData *app_data) { GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model (app_data->tree_view)); gtk_list_store_clear (store); add_data_to_model (app_data->db_data, store); } void delete_rows_cb (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; g_return_if_fail (tree_view != NULL); GtkTreeModel *model = gtk_tree_view_get_model (tree_view); GtkListStore *list_store = GTK_LIST_STORE(model); GtkTreeIter iter; gtk_tree_model_get_iter (model, &iter, path); gint db_item_position_to_delete; gtk_tree_model_get (model, &iter, COLUMN_POSITION_IN_DB, &db_item_position_to_delete, -1); json_array_remove (app_data->db_data->json_data, db_item_position_to_delete); gtk_list_store_remove (list_store, &iter); // json_array_remove shifts all items, so we have to take care of updating the real item's position in the database gint row_db_pos; gboolean valid = gtk_tree_model_get_iter_first(model, &iter); while (valid) { gtk_tree_model_get (model, &iter, COLUMN_POSITION_IN_DB, &row_db_pos, -1); if (row_db_pos > db_item_position_to_delete) { gint shifted_position = row_db_pos - 1; gtk_list_store_set (list_store, &iter, COLUMN_POSITION_IN_DB, shifted_position, -1); } valid = gtk_tree_model_iter_next(model, &iter); } GError *err = NULL; update_and_reload_db (app_data, app_data->db_data, FALSE, &err); if (err != NULL) { gchar *msg = g_strconcat ("The database update FAILED. The error message is:\n", err->message, NULL); show_message_dialog (app_data->main_window, msg, GTK_MESSAGE_ERROR); g_free (msg); } } void row_selected_cb (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; GtkTreeModel *model = gtk_tree_view_get_model (tree_view); GtkTreeIter iter; gtk_tree_model_get_iter (model, &iter, path); gchar *otp_type, *otp_value; gtk_tree_model_get (model, &iter, COLUMN_TYPE, &otp_type, -1); gtk_tree_model_get (model, &iter, COLUMN_OTP, &otp_value, -1); GDateTime *now = g_date_time_new_now_local (); GTimeSpan diff = g_date_time_difference (now, app_data->db_data->last_hotp_update); if (otp_value != NULL && g_utf8_strlen (otp_value, -1) > 3) { // OTP is already set, so we update the value only if it is an HOTP if (g_ascii_strcasecmp (otp_type, "HOTP") == 0) { if (diff >= G_USEC_PER_SEC * HOTP_RATE_LIMIT_IN_SEC) { set_otp (GTK_LIST_STORE (model), iter, app_data); g_free (otp_value); gtk_tree_model_get (model, &iter, COLUMN_OTP, &otp_value, -1); } } } else { // OTP is not already set, so we set it set_otp (GTK_LIST_STORE (model), iter, app_data); g_free (otp_value); gtk_tree_model_get (model, &iter, COLUMN_OTP, &otp_value, -1); } // and, in any case, we copy the otp to the clipboard and send a notification gtk_clipboard_set_text (app_data->clipboard, otp_value, -1); if (!app_data->disable_notifications) { g_application_send_notification (G_APPLICATION(gtk_window_get_application (GTK_WINDOW(app_data->main_window))), NOTIFICATION_ID, app_data->notification); } g_date_time_unref (now); g_free (otp_type); g_free (otp_value); } static void hide_all_otps_cb (GtkTreeView *tree_view, gpointer user_data) { gtk_tree_model_foreach (GTK_TREE_MODEL(gtk_tree_view_get_model (tree_view)), clear_all_otps, user_data); } static gboolean clear_all_otps (GtkTreeModel *model, GtkTreePath *path __attribute__((unused)), GtkTreeIter *iter, gpointer user_data __attribute__((unused))) { gchar *otp; gtk_tree_model_get (model, iter, COLUMN_OTP, &otp, -1); if (otp != NULL && g_utf8_strlen (otp, -1) > 4) { gtk_list_store_set (GTK_LIST_STORE(model), iter, COLUMN_OTP, "", COLUMN_VALIDITY, 0, COLUMN_UPDATED, FALSE, COLUMN_LESS_THAN_A_MINUTE, FALSE, -1); } g_free (otp); // do not stop walking the store, check next row return FALSE; } static void set_json_data (json_t *array, ParsedData *pjd) { gsize array_len = json_array_size (array); pjd->types = (gchar **) g_malloc0 ((array_len + 1) * sizeof (gchar *)); pjd->labels = (gchar **) g_malloc0 ((array_len + 1) * sizeof (gchar *)); pjd->issuers = (gchar **) g_malloc0 ((array_len + 1) * sizeof (gchar *)); pjd->periods = g_array_new (FALSE, FALSE, sizeof(gint)); for (guint i = 0; i < array_len; i++) { json_t *obj = json_array_get (array, i); pjd->types[i] = g_strdup (json_string_value (json_object_get (obj, "type"))); pjd->labels[i] = g_strdup (json_string_value (json_object_get (obj, "label"))); pjd->issuers[i] = g_strdup (json_string_value (json_object_get (obj, "issuer"))); json_int_t period = json_integer_value (json_object_get (obj, "period")); g_array_append_val (pjd->periods, period); } pjd->types[array_len] = NULL; pjd->labels[array_len] = NULL; pjd->issuers[array_len] = NULL; } static void add_data_to_model (DatabaseData *db_data, GtkListStore *store) { GtkTreeIter iter; ParsedData *pjd = g_new0 (ParsedData, 1); set_json_data (db_data->json_data, pjd); gint i = 0; while (pjd->types[i] != NULL) { gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_TYPE, pjd->types[i], COLUMN_ACC_LABEL, pjd->labels[i], COLUMN_ACC_ISSUER, pjd->issuers[i], COLUMN_PERIOD, g_array_index (pjd->periods, gint, i), COLUMN_UPDATED, FALSE, COLUMN_LESS_THAN_A_MINUTE, FALSE, COLUMN_POSITION_IN_DB, i, -1); i++; } free_pjd (pjd); } static void add_columns (GtkTreeView *tree_view) { GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); GtkTreeViewColumn *column = gtk_tree_view_column_new_with_attributes ("Type", renderer, "text", COLUMN_TYPE, NULL); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Account", renderer, "text", COLUMN_ACC_LABEL, NULL); gtk_tree_view_column_set_sizing (GTK_TREE_VIEW_COLUMN(column), GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Issuer", renderer, "text", COLUMN_ACC_ISSUER, NULL); gtk_tree_view_column_set_sizing (GTK_TREE_VIEW_COLUMN(column), GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("OTP Value", renderer, "text", COLUMN_OTP, NULL); gtk_tree_view_column_set_sizing (GTK_TREE_VIEW_COLUMN(column), GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Validity", renderer, "text", COLUMN_VALIDITY, NULL); gtk_tree_view_column_set_sizing (GTK_TREE_VIEW_COLUMN(column), GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Period", renderer, "text", COLUMN_PERIOD, NULL); gtk_tree_view_column_set_visible (column, FALSE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Updated", renderer, "text", COLUMN_UPDATED, NULL); gtk_tree_view_column_set_visible (column, FALSE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Less Than a Minute", renderer, "text", COLUMN_LESS_THAN_A_MINUTE, NULL); gtk_tree_view_column_set_visible (column, FALSE); gtk_tree_view_append_column (tree_view, column); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Position in Database", renderer, "text", COLUMN_POSITION_IN_DB, NULL); gtk_tree_view_column_set_visible (column, FALSE); gtk_tree_view_append_column (tree_view, column); } static void free_pjd (ParsedData *pjd) { g_strfreev (pjd->types); g_strfreev (pjd->labels); g_strfreev (pjd->issuers); g_array_free (pjd->periods, TRUE); g_free (pjd); } OTPClient-2.4.6/src/treeview.h000066400000000000000000000016101414446074000161200ustar00rootroot00000000000000#pragma once #include "data.h" G_BEGIN_DECLS enum { COLUMN_TYPE, COLUMN_ACC_LABEL, COLUMN_ACC_ISSUER, COLUMN_OTP, COLUMN_VALIDITY, COLUMN_PERIOD, COLUMN_UPDATED, COLUMN_LESS_THAN_A_MINUTE, COLUMN_POSITION_IN_DB, NUM_COLUMNS }; void create_treeview (AppData *app_data); void update_model (AppData *app_data); void delete_rows_cb (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data); void row_selected_cb (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data); G_END_DECLS OTPClient-2.4.6/src/ui/000077500000000000000000000000001414446074000145345ustar00rootroot00000000000000OTPClient-2.4.6/src/ui/otpclient.ui000066400000000000000000002561201414446074000171020ustar00rootroot00000000000000 False True False vertical True True True add_menu.import_qr_file From file False True 0 True True True add_menu.import_qr_clipboard From clipboard False True 1 import_qr_menu 1 True False vertical True True True add_menu.webcam Scan using webcam False True 0 True True True add_menu.screenshot Take screenshot False True 1 True True True Using a QR Code import_qr_menu False True 2 True True True add_menu.manual Manually False True 3 main 2 False 5 Change password center dialog center False vertical 5 False end Cancel True True True True True 0 OK True True True True True 1 False False 0 True False vertical 5 True False Please type the current password, the new one, and again the new one to verify its correctness. Please note that <b>there is no way to recover a forgotten password.</b> True center True False True 0 True True Max 255 chars 255 False dialog-password-symbolic Show password Type current password... password False True 1 True True Max 255 chars 255 False dialog-password-symbolic Show password Type new password... password False True 2 True True Max 255 chars 255 False dialog-password-symbolic Show password Retype new password... password False True 3 False True 1 changepwd_diag_cancel_btn_id changepwd_diag_ok_btn_id 400 150 False 5 Password center dialog center False vertical 10 False end Cancel True True True True True 0 OK True True True True True 1 False False 0 True False 5 5 True center True False True 1 True True Max 255 chars 255 False dialog-password-symbolic Show password Type password... password False True 2 decpwddiag_cancel_btn_id decpwddiag_ok_btn_id False Scan using webcam center dialog center False 5 5 vertical 5 False end Cancel True True True True True 0 False False 0 True False Select the file with the QR code and copy it (CTRL-C). If you are using <b>KDE</b>, then you must copy the file <b>before</b> selecting this option, otherwise the content won't be parsed. This dialog will close automatically as soon as a valid qrcode has been found or after 30 seconds if nothing has been detected. True center True True True 1 cancel_btn_qrclipb_id False Scan using webcam center dialog center False 5 5 5 5 vertical 5 False end Cancel True True True True True 0 False False 0 True False Please place the qrcode <b>in front of the webcam</b>. This dialog will automatically close as soon as a valid qrcode has been found or after 30 seconds if nothing has been detected. True center True True True 1 cancel_btn_webcam_id False 5 Database location center dialog center False vertical 2 False end Cancel True True True 15 True True 1 False False 0 True False vertical 6 True False 5 This seems to be the first time you run OTPClient on this device. Please select whether you want to restore an existing database or create a new one. center True False True 0 Restore existing OTPClient database diag_rc_restoredb_btn True True True Do NOT use to import third party databases (e.g. andOTP) False True 1 Create new database diag_rc_createdb_btn True True True False True 2 False True 1 diag_rc_cancel_btn_id 300 False 5 Edit data center dialog center False vertical 10 False end Cancel True True True True True 0 OK True True True True True 1 False False 0 True False Please note that "account" is <b>mandatory</b> and "issuer", while optional, is <b>highly recommended</b> True center True False True 1 True False vertical 10 True False 0 in True False 12 True True 5 5 64 True False New account False True 0 True False 0 in True False 12 True True 5 5 64 True False New issuer False True 1 True True 2 edit_diag_cancel_btn edit_diag_ok_btn True False list-remove-symbolic False 10 Add Token center 500 dialog center False vertical 10 False end Cancel True True True True True 0 OK True True True True True 1 False False 0 True False vertical 5 True False 2 otp_cb True False 0 TOTP HOTP True True 0 True False 0 SHA1 SHA256 SHA512 True True 1 This is a Steam code True True False True False True 2 False True 0 True True 64 Label Account True True 1 True True 64 Issuer Issuer True True 2 True True 255 False dialog-password-symbolic Secret Secret password True True 3 True False 2 2 True True False vertical True False Digits False True 0 True True Between 4 and 10 10 10 6 False digits False True 1 False True 0 True False vertical True False Period False True 0 True True In seconds between 10 and 120 3 10 30 False digits False True 1 False True 1 True False vertical True False Counter False True 0 True True Value decided by the server (HOTP only) 10 False digits False True 1 False True 2 False True 4 False True 1 manual_diag_cancel_btn_id manual_diag_ok_btn_id False 5 Password center dialog center False vertical 5 False end Cancel True True True True True 0 OK True True True True True 1 False False 0 True False vertical 5 True False Choose an encryption password for the database. Please note that <b>there is no way to recover a forgotten password.</b> True center True False True 0 True True Max 255 chars 255 False dialog-password-symbolic Show password Type password... password False True 1 True True Max 255 chars 255 False dialog-password-symbolic Show password Retype password... password False True 2 False True 1 newdb_pwd_diag_cancel_btn_id newdb_pwd_diag_ok_btn_id False 5 Settings center dialog center False vertical 10 False end Cancel True True True True True 0 OK True True True True True 1 False False 0 True False vertical 10 10 True False Show next OTP 0 0 True False Disable notifications 0 1 True False Search by 0 2 True True 1 1 True False 0 0 Account Issuer 1 2 True True 1 0 True False Auto lock on system lock 0 3 True True 1 3 True False Auto lock when inactive for 0 4 True False 0 0 Never 30s 1m 5m 15m 30m 1 4 False True 1 settings_diag_cancel_btn_id settings_diag_ok_btn_id False True False vertical True True True settings_menu.import_andotp andOTP (encrypted) False True 0 True True True settings_menu.import_andotp_plain andOTP (plain) False True 1 True True True settings_menu.import_authplus Authenticator Plus False True 2 True True True settings_menu.import_freeotpplus FreeOTP+ (key URI) False True 3 True True True settings_menu.import_aegis Aegis (plain json) False True 4 import_menu 1 True False vertical True True True settings_menu.export_andotp andOTP (encrypted) False True 0 True True True settings_menu.export_andotp_plain andOTP (plain) False True 1 True True True settings_menu.export_freeotpplus FreeOTP+ (key URI) False True 2 True True True settings_menu.export_aegis Aegis (plain json) False True 3 export_menu 2 True False vertical True True True Import import_menu False True 0 True True True Export export_menu False True 1 True True True settings_menu.change_pwd Change password False True 2 True True True settings_menu.edit_row Edit row False True 3 True True True settings_menu.settings Settings False True 4 True True True settings_menu.shortcuts Keyboard shortcuts False True 5 main 3 False center 500 350 center True False OTPClient True True False True True True Add token add_pop_id True False list-add-symbolic False True 0 delbtn True True True Toggle delete rows lrs_image False True 1 True True True Settings settings_pop_id True False open-menu-symbolic end 1 True True True True etched-in True True True True False horizontal True False 5 Password center dialog center False vertical 10 False end Quit True True True True True 0 Unlock True True True True True 1 False False 0 True False vertical 10 True False The application is <b>locked</b>. Please type your password to unlock it True center True False True 0 True True Max 255 chars 255 False dialog-password-symbolic Show password Type password... password False True 1 False True 1 unlock_diag_quit_btn_id unlock_diag_unlock_btn_id False Warning: memlock value too low center dialog center 400 False vertical 2 False end Exit True True True True True 0 OK True True True True True 1 False False 0 True False vertical 9 True False True center True True True 0 Do not show this warning again True True False True False True 1 False True 1 warning_diag_exit_btn_id warning_diag_ok_btn_id OTPClient-2.4.6/src/ui/shortcuts.ui000066400000000000000000000154531414446074000171410ustar00rootroot00000000000000 1 1 shortcuts 12 1 Add token add 1 <Ctrl>a Open add menu 1 <Ctrl>w Scan QR code using webcam 1 <Ctrl>t Scan QR code by taking a screenshot 1 <Ctrl>p Select QR code from a local photo 1 <Ctrl>l Manually insert data 1 General general 1 <Ctrl>h Hide all otps 1 <Ctrl>d Toggle delete rows 1 <Ctrl>f Search 1 <Ctrl>l Lock 1 <Ctrl>q Quit 1 Menu settings 1 <Ctrl>m Open menu 1 <Ctrl>i Import 1 <Ctrl>e Export 1 <Ctrl>c Change password 1 <Ctrl>r Edit selected row 1 <Ctrl>s Show settings 1 <Ctrl>k Show keyboard shortcuts OTPClient-2.4.6/src/webcam-add-cb.c000066400000000000000000000066201414446074000166350ustar00rootroot00000000000000#include #include #include #include "gui-common.h" #include "imports.h" #include "parse-uri.h" #include "message-dialogs.h" #include "add-common.h" #include "get-builder.h" #include "common/common.h" typedef struct _config_data { GtkWidget *diag; gchar *otp_uri; gboolean qrcode_found; gboolean gtimeout_exit_value; guint counter; } ConfigData; static gboolean check_result (gpointer data); static void scan_qrcode (zbar_image_t *image, gconstpointer user_data); void webcam_cb (GSimpleAction *simple __attribute__((unused)), GVariant *parameter __attribute__((unused)), gpointer user_data) { AppData *app_data = (AppData *)user_data; ConfigData *cfg_data = g_new0 (ConfigData, 1); GtkBuilder *builder = get_builder_from_partial_path (UI_PARTIAL_PATH); cfg_data->diag = GTK_WIDGET(gtk_builder_get_object (builder, "diag_webcam_id")); gtk_window_set_transient_for (GTK_WINDOW(cfg_data->diag), GTK_WINDOW(app_data->main_window)); cfg_data->qrcode_found = FALSE; cfg_data->gtimeout_exit_value = TRUE; cfg_data->counter = 0; zbar_processor_t *proc = zbar_processor_create (1); zbar_processor_set_config (proc, ZBAR_NONE, ZBAR_CFG_ENABLE, 1); if (zbar_processor_init (proc, "/dev/video0", 1)) { show_message_dialog (app_data->main_window, "Couldn't initialize the webcam", GTK_MESSAGE_ERROR); zbar_processor_destroy (proc); g_free (cfg_data); return; } zbar_processor_set_data_handler (proc, scan_qrcode, cfg_data); zbar_processor_set_visible (proc, 0); zbar_processor_set_active (proc, 1); guint source_id = g_timeout_add (1000, check_result, cfg_data); gtk_widget_show_all (cfg_data->diag); gint response = gtk_dialog_run (GTK_DIALOG (cfg_data->diag)); if (response == GTK_RESPONSE_CANCEL) { if (cfg_data->qrcode_found) { gchar *err_msg = add_data_to_db (cfg_data->otp_uri, app_data); if (err_msg != NULL) { show_message_dialog (app_data->main_window, err_msg, GTK_MESSAGE_ERROR); g_free (err_msg); } else { show_message_dialog (app_data->main_window, "QRCode successfully scanned", GTK_MESSAGE_INFO); } gcry_free (cfg_data->otp_uri); } zbar_processor_destroy (proc); if (cfg_data->gtimeout_exit_value) { // only remove if 'check_result' returned TRUE g_source_remove (source_id); } gtk_widget_destroy (cfg_data->diag); g_free (cfg_data); } g_object_unref (builder); } static gboolean check_result (gpointer data) { ConfigData *cfg_data = (ConfigData *)data; if (cfg_data->qrcode_found || cfg_data->counter > 30) { gtk_dialog_response (GTK_DIALOG (cfg_data->diag), GTK_RESPONSE_CANCEL); cfg_data->gtimeout_exit_value = FALSE; return FALSE; } cfg_data->counter++; return TRUE; } static void scan_qrcode (zbar_image_t *image, gconstpointer user_data) { ConfigData *cfg_data = (ConfigData *)user_data; const zbar_symbol_t *symbol = zbar_image_first_symbol (image); for (; symbol; symbol = zbar_symbol_next (symbol)) { cfg_data->otp_uri = secure_strdup (zbar_symbol_get_data (symbol)); cfg_data->qrcode_found = TRUE; } }