about summary refs log tree commit diff stats
path: root/src/pgp/gpg.c
Commit message (Collapse)AuthorAgeFilesLines
* Split ox functions from gpg.c to ox.cMichael Vetter2022-06-291-534/+7
|
* ox: fix mistakes in p_ox_gpg_decrypt()Michael Vetter2022-05-041-1/+3
| | | | | | | strcpy() can't work here because the data doesn't have to be NULL-terminated. So let's use memcpy. Fix memleak of plain_str.
* ox: print more error messages to UIMichael Vetter2022-05-031-2/+6
|
* ox: dont require marginal trust levelMichael Vetter2022-05-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Maybe we can make this configurable later. So users have the freedom to be more strict. This commit partly reverts 62018f48c5f1a0410445fce5bca5fdd6a9e4d907. Example to edit trust level: ``` gpg --edit-key somekeyid gpg (GnuPG) 2.3.4; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. pub rsa4096/keyid created: 2020-06-26 expires: 2022-06-26 usage: SC trust: unknown validity: full sub rsa4096/keyid created: 2020-06-26 expires: 2022-06-26 usage: E [ full ] (1). xmpp:user@domain.de gpg> trust pub rsa4096/keyid created: 2020-06-26 expires: 2022-06-26 usage: SC trust: unknown validity: full sub rsa4096/keyid created: 2020-06-26 expires: 2022-06-26 usage: E [ full ] (1). xmpp:user@domain.de Please decide how far you trust this user to correctly verify other users' keys (by looking at passports, checking fingerprints from different sources, etc.) 1 = I don't know or won't say 2 = I do NOT trust 3 = I trust marginally 4 = I trust fully 5 = I trust ultimately m = back to the main menu Your decision? 3 pub rsa4096/keyid created: 2020-06-26 expires: 2022-06-26 usage: SC trust: marginal validity: full sub rsa4096/keyid created: 2020-06-26 expires: 2022-06-26 usage: E [ full ] (1). xmpp:user@domain.de Please note that the shown key validity is not necessarily correct unless you restart the program. gpg> quit ```
* ox_key_is_usable - Logging and owner trust checkStefan Kropp2022-05-031-0/+6
| | | | | | | * Added logging messages (INFO if key can not be used) * Check owner_trust < GPGME_VALIDITY_MARGINAL The key can not be used if the owner_trust is less than MARGINAL.
* Merge pull request #1644 from profanity-im/ox-polishMichael Vetter2022-03-211-37/+34
|\ | | | | Improve OX user experience
| * ox: adjust formattingMichael Vetter2022-02-241-4/+0
| |
| * ox: standardize log outputMichael Vetter2022-02-241-33/+34
| |
* | add `files_file_in_account_data_path()`Steffen Jaeckel2022-03-131-19/+5
|/ | | | | | | | | | | | As all parts of the code invoking the `files_get_account_data_path()` function did the same afterwards, a function has been added with the same behavior. 1. create path 2. `mkdir` of that path 3. return final path Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* auto-formatSteffen Jaeckel2022-02-011-14/+14
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Format code correctlyMichael Vetter2021-10-051-1/+1
|
* OX bug fixingDebXWoody2021-06-291-0/+5
| | | | | * Don't decryption if there is no private key * Decryption error messages
* Fix various typosMichael Vetter2020-12-101-3/+3
|
* Declare counter var inside loopMichael Vetter2020-11-091-4/+2
| | | | We require c99/gnu99 anyways.
* Since the string from strerror should never be modified, use const.Philipp Klaus Krause2020-10-141-1/+1
|
* OX: XEP-0373: OpenPGP for XMPP - Version 0.5.0 (2020-06-19)DebXWoody2020-07-101-0/+44
| | | | | | | | | | | Discovering Public Keys via PEP * 4.3 Discovering Public Keys of a User * 4.4 Requesting Public Keys * Import Public Keys into GnuPG's local keyring. Issue: #1331
* Apply coding styleMichael Vetter2020-07-071-297/+307
|
* Revert "Apply coding style"Michael Vetter2020-07-071-311/+301
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-301/+311
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* OX: Announce public key on PEPDebXWoody2020-07-061-0/+103
| | | | | | | | | | | | | | | src/pgp/gpg.c:p_ox_gpg_readkey Used to read a public key from a file. The function will return the fingerprint of the file and the base64 encoded key. src/xmpp/ox.[hc] ox_announce_public_key(const char* const filename) can be called from the /ox announce <filename> command. The key within the file will be pushed on PEP and the Metadata node will be set. Issue: #1331
* gpg.c: _ox_key_is_usable() simplify if conditionMichael Vetter2020-07-021-3/+3
|
* gpg.c: Format new ox function headsMichael Vetter2020-07-021-7/+26
|
* Use files_get_account_data_path instead of duplicate codeMichael Vetter2020-07-011-13/+9
| | | | | We often had a use case where we want the account specific data dir. Let's create a function for this instead of doing it by hand each time.
* Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-291-0/+339
| | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-311-1/+1
| | | | Fix #1068
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Restoration of correct GPG encryptionViachaslau Khalikin2019-02-201-1/+1
| | | | | | | | Fixes https://github.com/boothj5/profanity/issues/997 Proposed as https://github.com/boothj5/profanity/pull/1008 Related to XEP-0027. Message edited and commit cherry picked by jubalh.
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Show libotr and libgpgme versions on --versionJames Booth2017-08-101-1/+4
| | | | issue #956
* Allow previous autocompletion with shift tabJames Booth2017-04-011-2/+2
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Free pgpdirJames Booth2016-07-251-0/+1
|
* Move all filepath handling to files.cJames Booth2016-07-241-5/+3
|
* Move xgd functionsJames Booth2016-07-241-1/+1
|
* Add config/files.cJames Booth2016-07-241-0/+1
|
* Tidy headersJames Booth2016-07-241-1/+1
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Removed #AX_PREFIX_CONFIG_HJames Booth2016-03-311-1/+1
|
* PGP: Fixed array size for encryption keysJames Booth2016-03-291-1/+1
|
* PGP: Also encrypt using sender public keyJames Booth2016-03-291-10/+29
|
* Merge branch 'master' into plugins-cJames Booth2016-02-141-1/+1
|\ | | | | | | | | | | Conflicts: src/main.c src/ui/console.c
| * Updated copyrightJames Booth2016-02-141-1/+1
| |
* | Added C plugin code from plugins branchJames Booth2016-02-141-1/+1
|/
* Show PGP error stringsJames Booth2015-12-151-5/+9
|
* Applied coding style to src/pgp/James Booth2015-10-251-21/+21
|
* PGP: Use old gpgme_io_writeJames Booth2015-09-011-1/+1
|
* PGP: Use old gpgme_io_writeJames Booth2015-09-011-1/+1
|
* PGP: Added null check for passphrase_attemptJames Booth2015-09-011-2/+6
|
* Save PGP passphrase when correctJames Booth2015-09-011-22/+47
|