dirmngr,gpgsm: Return NULL on fail