Lines Matching refs:revoked
3028 revoked = crl.get_revoked()
3029 reason = revoked[1].get_reason()
3034 revoked = crl.get_revoked()
3035 revoked[1].set_reason(None)
3036 reason = revoked[1].get_reason()
3044 revoked = Revoked()
3045 assert isinstance(revoked, Revoked)
3046 assert type(revoked) == Revoked
3047 assert revoked.get_serial() == b'00'
3048 assert revoked.get_rev_date() is None
3049 assert revoked.get_reason() is None
3056 revoked = Revoked()
3057 ret = revoked.set_serial(b'10b')
3059 ser = revoked.get_serial()
3062 revoked.set_serial(b'31ppp') # a type error would be nice
3063 ser = revoked.get_serial()
3067 revoked.set_serial(b'pqrst')
3069 revoked.set_serial(100)
3076 revoked = Revoked()
3077 date = revoked.get_rev_date()
3081 ret = revoked.set_rev_date(now)
3083 date = revoked.get_rev_date()
3092 revoked = Revoked()
3093 for r in revoked.all_reasons():
3095 ret = revoked.set_reason(r)
3097 reason = revoked.get_reason()
3103 revoked.set_reason(None)
3104 assert revoked.get_reason() is None
3112 revoked = Revoked()
3114 revoked.set_reason(reason)
3121 revoked = Revoked()
3123 revoked.set_reason(b'blue')
3156 revoked = Revoked()
3158 revoked.set_rev_date(now)
3159 revoked.set_serial(b'3ab')
3160 revoked.set_reason(b'sUpErSeDEd')
3161 crl.add_revoked(revoked)
3175 revoked = crl.get_revoked_certificate_by_serial_number(0x03AB)
3176 assert revoked is not None
3198 revoked = crl.get_revoked_certificate_by_serial_number(0x03AB)
3199 assert revoked is not None
3280 revoked = Revoked()
3281 revoked.set_serial(b"01")
3282 revoked.set_rev_date(b"20160310020145Z")
3283 crl.add_revoked(revoked=revoked)
3329 revoked = Revoked()
3331 revoked.set_rev_date(now)
3332 revoked.set_serial(b'3ab')
3333 crl.add_revoked(revoked)
3334 revoked.set_serial(b'100')
3335 revoked.set_reason(b'sUpErSeDEd')
3336 crl.add_revoked(revoked)
3411 revoked = Revoked()
3416 revoked.set_serial(serial)
3417 revoked.set_reason(b'unspecified')
3418 revoked.set_rev_date(b'20140601000000Z')
3419 crl.add_revoked(revoked)