How to use C function to calculate GPG keygrip

I'm new/terrible in C language... so my general question is:

How do I use "already existing" functions in C used in programs such as GPG or other unix programs?

(More specific) Problem: I have a GPG key, but newer version does not support the common options --with-keygrip. Therefore I wonder: How do I use C function like: unsigned char * gcry_pk_get_keygrip

GNUPG Manual

Thanks.



Read more here: https://stackoverflow.com/questions/64893345/how-to-use-c-function-to-calculate-gpg-keygrip

Content Attribution

This content was originally published by user17378 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: