crypto.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:2FAssassin 作者: maxwellkoh 项目源码 文件源码
def from_cryptography(cls, crypto_crl):
        """
        Construct based on a ``cryptography`` *crypto_crl*.

        :param crypto_crl: A ``cryptography`` certificate revocation list
        :type crypto_crl: ``cryptography.x509.CertificateRevocationList``

        :rtype: CRL

        .. versionadded:: 17.1.0
        """
        if not isinstance(crypto_crl, x509.CertificateRevocationList):
            raise TypeError("Must be a certificate revocation list")

        crl = cls()
        crl._crl = crypto_crl._x509_crl
        return crl
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号