Parse the output of CLI PGP program. More...
#include "config.h"#include <fcntl.h>#include <iconv.h>#include <stdbool.h>#include <stdio.h>#include <string.h>#include <sys/types.h>#include <time.h>#include <unistd.h>#include "mutt/lib.h"#include "config/lib.h"#include "email/lib.h"#include "core/lib.h"#include "gnupgparse.h"#include "lib.h"#include "pgpinvoke.h"#include "pgpkey.h"#include "pgplib.h"
Include dependency graph for gnupgparse.c:Go to the source code of this file.
Functions | |
| static void | fix_uid (char *uid) |
| Decode backslash-escaped user ids (in place) | |
| static struct PgpKeyInfo * | parse_pub_line (char *buf, bool *is_subkey, struct PgpKeyInfo *k) |
| Parse the 'pub' line from the pgp output. | |
| struct PgpKeyInfo * | pgp_get_candidates (enum PgpRing keyring, struct ListHead *hints) |
| Find PGP keys matching a list of hints. | |
Variables | |
| static char * | Charset = NULL |
| Cached copy of $charset. | |
Parse the output of CLI PGP program.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file gnupgparse.c.
|
static |
Decode backslash-escaped user ids (in place)
| uid | String to decode |
Definition at line 81 of file gnupgparse.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Parse the 'pub' line from the pgp output.
| [in] | buf | Buffer containing string to parse |
| [out] | is_subkey | Is this a subkey of another key? |
| [in] | k | Key to from which to merge info (optional) |
| ptr | PgpKeyInfo containing the (merged) results |
| NULL | Error |
Definition at line 134 of file gnupgparse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct PgpKeyInfo * pgp_get_candidates | ( | enum PgpRing | keyring, |
| struct ListHead * | hints ) |
Find PGP keys matching a list of hints.
| keyring | PGP Keyring |
| hints | List of strings to match |
| ptr | Key list |
| NULL | Error |
Definition at line 417 of file gnupgparse.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Cached copy of $charset.
Definition at line 75 of file gnupgparse.c.