From kmail-devel Sun Sep 29 21:22:15 2002 From: Karl-Heinz Zimmer Date: Sun, 29 Sep 2002 21:22:15 +0000 To: kmail-devel Subject: Re: Bugfix for gpgmeplug X-MARC-Message: https://marc.info/?l=kmail-devel&m=103333440509747 Hi Ingo, thanks for your bugfix! I applied the patch to the gpgme CVS repository. Cheers Karl-Heinz On Saturday 28 September 2002 15:38, Ingo Kl=F6cker wrote: > Hi, > > the attached patch makes signatureCertificateDaysLeftToExpiry() and > receiverCertificateDaysLeftToExpiry() handle the case that a > certificate _never_ expires correctly. I was always told that my key > expired 11598 days ago. > > BTW, it would be nice if you could implement the following stuff asap > because KDE 3.1 is released approx. a month from now. > > =3D=3D=3D=3D=3D > bool isEmailInCertificate( const char* email, const char* certificate ) > { > /* PENDING(g10) this function should return true if the email > address passed as the first parameter is contained in the > certificate passed as the second parameter, and false > otherwise. This is used to alert the user if his own email > address is not contained in the certificate he uses for > signing. > Note that the parameter email can be anything that is allowed > in a From: line. > Another note: OK, OK, we'll handle that in the MUA. You can > assume that you only get the email address. > */ > return false; /* dummy*/ > } > =3D=3D=3D=3D=3D > int caCertificateDaysLeftToExpiry( const char* certificate ) > { > /* PENDING(g10) > Please return the number of days that are left until the > CA certificate for the certificate specified in the parameter > certificate expires. > */ > ... > return 10; /* dummy that triggers a warning in the MUA */ > } > =3D=3D=3D=3D=3D > int rootCertificateDaysLeftToExpiry( const char* certificate ) > { > /* PENDING(g10) > Please return the number of days that are left until the > root certificate for the certificate specified in the parameter > certificate expires. > */ > ... > return 10; /* dummy that triggers a warning in the MUA */ > } > =3D=3D=3D=3D=3D > > Regards, > Ingo =2D-=20 Karl-Heinz Zimmer, Senior Software Engineer, Klar=E4lvdalens Datakonsult AB _______________________________________________ KMail Developers mailing list kmail@mail.kde.org http://mail.kde.org/mailman/listinfo/kmail