@@ -386,44 +386,6 @@ getdns_dict *
386
386
}
387
387
388
388
/* XXX rewrite this so it's more general */
389
- <<<<<<< HEAD
390
- if ((str = PyDict_GetItemString (pydict , "tls_auth_name" )) != NULL ) {
391
- #if PY_MAJOR_VERSION >= 3
392
- tls_auth_name .data = (uint8_t * )strdup (PyBytes_AsString (PyUnicode_AsEncodedString (str , "ascii" , NULL )));
393
- #else
394
- tls_auth_name .data = (uint8_t * )strdup (PyString_AsString (str ));
395
- #endif
396
- tls_auth_name .size = (size_t )strlen ((char * )tls_auth_name .data );
397
- getdns_dict_set_bindata (addr_dict , "tls_auth_name" , & tls_auth_name );
398
- }
399
- if ((str = PyDict_GetItemString (pydict , "scope_id" )) != NULL ) {
400
- #if PY_MAJOR_VERSION >= 3
401
- scope_id .data = (uint8_t * )strdup (PyBytes_AsString (PyUnicode_AsEncodedString (str , "ascii" , NULL )));
402
- #else
403
- scope_id .data = (uint8_t * )strdup (PyString_AsString (str ));
404
- #endif
405
- scope_id .size = (size_t )strlen ((char * )scope_id .data );
406
- getdns_dict_set_bindata (addr_dict , "scope_id" , & scope_id );
407
- }
408
- if ((str = PyDict_GetItemString (pydict , "tls_port" )) != NULL ) {
409
- #if PY_MAJOR_VERSION >= 3
410
- if (!PyLong_Check (str )) {
411
- PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
412
- return NULL ;
413
- }
414
- tls_port = (uint32_t )PyLong_AsLong (str );
415
- getdns_dict_set_int (addr_dict , "tls_port" , tls_port );
416
- #else
417
- if (!PyInt_Check (str )) {
418
- PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
419
- return NULL ;
420
- }
421
- tls_port = (uint32_t )PyInt_AsLong (str );
422
- getdns_dict_set_int (addr_dict , "tls_port" , tls_port );
423
- #endif
424
- }
425
- == == == =
426
- >>>>>>> develop
427
389
428
390
/* dict members supported:
429
391
* address_data
0 commit comments