'Returns the data of the X509Extension
:return: A :py:data:`str` giving the X509Extension\'s ASN.1 encoded data.'

def get_data(self):

    octet_result = _lib.X509_EXTENSION_get_data(self._extension)
    string_result = _ffi.cast('ASN1_STRING*', octet_result)
    char_result = _lib.ASN1_STRING_data(string_result)
    result_length = _lib.ASN1_STRING_length(string_result)
    return _ffi.buffer(char_result, result_length)[:]
