GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sslscan/python/alert.c at master · DinoTools/sslscan Expand file tree/ Copy pathalert.cMore file actions 112 lines (90 loc) · 3.91 KB / Copy pathalert.cFile metadata and controls112 lines (90 loc) · 3.91 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 #include "sslscan_ssl.h" static char sslscan_ssl_alert_get_description_doc[] = ""; static PyObject * sslscan_ssl_alert_get_description(sslscan_ssl_alert_obj *self, PyObject *args) { if (!PyArg_ParseTuple(args, ":get_description")) return Py_BuildValue("");; return PyUnicode_FromString(SSL_alert_desc_string_long(self->ret)); } static char sslscan_ssl_alert_get_value_doc[] = ""; static PyObject * sslscan_ssl_alert_get_value(sslscan_ssl_alert_obj *self, PyObject *args) { if (!PyArg_ParseTuple(args, ":get_value")) return Py_BuildValue(""); return PyLong_FromLong(self->ret); } static char sslscan_ssl_alert_get_type_doc[] = ""; static PyObject * sslscan_ssl_alert_get_type(sslscan_ssl_alert_obj *self, PyObject *args) { if (!PyArg_ParseTuple(args, ":get_type")) return Py_BuildValue("");; return PyUnicode_FromString(SSL_alert_type_string_long(self->ret)); } static PyObject * sslscan_ssl_alert_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { PyObject *tmp_obj; //PyObject *tmp_obj; sslscan_ssl_alert_obj *self; self = PyObject_New(sslscan_ssl_alert_obj, &sslscan_ssl_alert_Type); if (PyArg_ParseTuple(args, "O:Alert", &tmp_obj)) { self->ret = *(int*)PyCapsule_GetPointer(tmp_obj, "ret"); } if (self == NULL) { return NULL; } return (PyObject *)self; } static int sslscan_ssl_alert_tp_init(sslscan_ssl_alert_obj *self, PyObject *args, PyObject *kwargs) { return 0; } #define ADD_METHOD(name) { #name, (PyCFunction)sslscan_ssl_alert_##name, METH_VARARGS, sslscan_ssl_alert_##name##_doc } static PyMethodDef sslscan_ssl_alert_tp_methods[] = { ADD_METHOD(get_description), ADD_METHOD(get_type), ADD_METHOD(get_value), {NULL, NULL} /* Sentinel */ }; #undef ADD_METHOD PyDoc_STRVAR(sslscan_ssl_alert_tp_doc, "Test"); PyTypeObject sslscan_ssl_alert_Type = { PyVarObject_HEAD_INIT(NULL, 0) "Alert", /*tp_name*/ sizeof(sslscan_ssl_alert_obj), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash */ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT, /*tp_flags*/ sslscan_ssl_alert_tp_doc, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ sslscan_ssl_alert_tp_methods, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getsets*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ (initproc)sslscan_ssl_alert_tp_init, /*tp_init*/ 0, /*tp_alloc*/ sslscan_ssl_alert_tp_new, /*tp_new*/ }; |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |