RE: Use of Passphrase Callback
Reminder From: SHARMA Sandhya (MORPHO) Sent: Tuesday, September 26, 2017 5:35 PM To: 'gnupg-users@gnupg.org' Subject: RE: Use of Passphrase Callback Hello, Does anyone has idea how to implement this. As I have urgent business need to do it ASAP. Thanks, Sandhya From: SHARMA Sandhya (MORPHO) Sent: Friday, September 22, 2017 6:21 PM To: 'gnupg-users@gnupg.org' mailto:gnupg-users@gnupg.org>> Subject: Use of Passphrase Callback Hello, I am Using gnupg on windows and want to use "Passphrase Callback" functionality to input password for private key. My current lines of code is: error = gpgme_set_pinentry_mode(context,GPGME_PINENTRY_MODE_LOOPBACK); gpgme_passphrase_cb_t func = &passphrase_callback; gpgme_pinentry_mode_t pinMode = gpgme_get_pinentry_mode(context); void *pp = 0; gpgme_set_passphrase_cb(context,func,pp); and declaration of gpgme_passphrase_cb_t is gpgme_error_t passphrase_callback(void *opaque, const char *uid_hint, const char *desc,int prev_was_bad, int fd) but breakpoint on this function never hits. Kindly provide help on this or any example used to implement Passphrase CallBack. Thanks & Regards, Sandhya Sharma # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
RE: Use of Passphrase Callback
Hello, Does anyone has idea how to implement this. As I have urgent business need to do it ASAP. Thanks, Sandhya From: SHARMA Sandhya (MORPHO) Sent: Friday, September 22, 2017 6:21 PM To: 'gnupg-users@gnupg.org' Subject: Use of Passphrase Callback Hello, I am Using gnupg on windows and want to use "Passphrase Callback" functionality to input password for private key. My current lines of code is: error = gpgme_set_pinentry_mode(context,GPGME_PINENTRY_MODE_LOOPBACK); gpgme_passphrase_cb_t func = &passphrase_callback; gpgme_pinentry_mode_t pinMode = gpgme_get_pinentry_mode(context); void *pp = 0; gpgme_set_passphrase_cb(context,func,pp); and declaration of gpgme_passphrase_cb_t is gpgme_error_t passphrase_callback(void *opaque, const char *uid_hint, const char *desc,int prev_was_bad, int fd) but breakpoint on this function never hits. Kindly provide help on this or any example used to implement Passphrase CallBack. Thanks & Regards, Sandhya Sharma # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Use of Passphrase Callback
Hello, I am Using gnupg on windows and want to use "Passphrase Callback" functionality to input password for private key. My current lines of code is: error = gpgme_set_pinentry_mode(context,GPGME_PINENTRY_MODE_LOOPBACK); gpgme_passphrase_cb_t func = &passphrase_callback; gpgme_pinentry_mode_t pinMode = gpgme_get_pinentry_mode(context); void *pp = 0; gpgme_set_passphrase_cb(context,func,pp); and declaration of gpgme_passphrase_cb_t is gpgme_error_t passphrase_callback(void *opaque, const char *uid_hint, const char *desc,int prev_was_bad, int fd) but breakpoint on this function never hits. Kindly provide help on this or any example used to implement Passphrase CallBack. Thanks & Regards, Sandhya Sharma # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users