/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos

merge + fallback bugg

Show diffs side-by-side

added added

removed removed

Lines of Context:
414
414
    crtverify = ctypes.c_uint();
415
415
    gnutls.library.functions.gnutls_openpgp_crt_verify_self\
416
416
        (crt, ctypes.c_uint(0), ctypes.byref(crtverify))
417
 
    if crtverify.value != 0:
418
 
        tmp = open("/tmp/tmp.gpg", "w")
419
 
        tmp.write(openpgp)
420
 
        tmp.close()
 
417
    if crtverify != 0:
421
418
        gnutls.library.functions.gnutls_openpgp_crt_deinit(crt)
422
419
        raise gnutls.errors.CertificateSecurityError("Verify failed")
423
420
    # New buffer for the fingerprint