lost in crypto space

Peter FELECAN pfelecan at opencsw.org
Thu Sep 18 12:11:00 CEST 2014


I'm packaging a project in need of GPG support and I'm encountering an
unusual situation, at least for me: GPGME:150:  Invalid crypto engine

Here is a test case:

/*
  gcc -std=gnu99 -I/opt/csw/include gpgeng.c -m32 -march=pentiumpro -L/opt/csw/lib -lgpgme -lgpg-error -o gpgeng
*/
#define _FILE_OFFSET_BITS 64

#include <stdio.h>
#include <stdlib.h>
#include <gpg-error.h>
#include <gpgme.h>

int main(int argc, char** argv)
{
	int rc = EXIT_SUCCESS;
	gpg_error_t err;
	err = gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP);
	if (err != 0)
	{
		rc = EXIT_FAILURE;
		fprintf(stderr, "gpgme failed with %s:%d:  %s\n",
				gpg_strsource(err), gpg_err_code(err),
				gpg_strerror(err));
	}
	
	exit(rc);
}

What am I missing?

TIA
-- 
Peter


More information about the maintainers mailing list