Example #1
0
 def set_subject_name(self, name):
     # type: (X509_Name) -> int
     """
     :return: 1 on success, 0 on failure
     """
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #2
0
 def set_subject_name(self, name):
     # type: (X509_Name) -> int
     """
     @return: 1 on success, 0 on failure
     """
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #3
0
    def set_subject(self, name):
        """
        Set subject name.

        @type name:     X509_Name
        @param name:    subjectName field.
        """
        assert m2.x509_type_check(self.x509), "'x509' type error"
        return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #4
0
    def set_subject(self, name):
        """
        Set subject name.

        @type name:     X509_Name
        @param name:    subjectName field.
        """
        assert m2.x509_type_check(self.x509), "'x509' type error"
        return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #5
0
    def set_subject(self, name):
        # type: (X509_Name) -> int
        """
        Set subject name.

        @param name:    subjectName field.
        @return 1 for success and 0 for failure
        """
        assert m2.x509_type_check(self.x509), "'x509' type error"
        return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #6
0
    def set_subject(self, name):
        # type: (X509_Name) -> int
        """
        Set subject name.

        :param name:    subjectName field.

        :return 1 for success and 0 for failure
        """
        assert m2.x509_type_check(self.x509), "'x509' type error"
        return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #7
0
 def set_subject_name(self, name):
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_subject_name(self.x509, name.x509_name)
Example #8
0
 def set_subject_name(self, name):
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_subject_name(self.x509, name.x509_name)