Problems with wshelper res_init.c

Jeffrey Altman jaltman at columbia.edu
Thu Jul 10 16:31:15 EDT 2003


This is definitely not a change that will be made to the MIT version of 
this code.
As always I am very concerned with forking source code because it makes 
the code unsupportable.  I believe the proper place for 
res_init_startup() to be called is from within your application before 
the call to res_init().

Jeffrey Altman


Douglas E. Engert wrote:

>Bill,
>Here is a revised res_init.c which calls the res_init_startup so 
>the iphlpapi.dll will get loaded and used in W2K and XP.
>This is only needed in the kx509 version.  
>
>You could also fix this be calling the res_init_startup from the kx509.c
>
>The MIT version should not need any of the changes I sent in yesterday.
> 
>
>*** ,res_init.c	Thu Mar 28 15:45:19 2002
>--- res_init.c	Thu Jul 10 13:45:24 2003
>***************
>*** 125,130 ****
>--- 125,133 ----
>  
>  static HMODULE this_module();
>  
>+ void res_init_startup();
>+ void res_init_cleanup();
>+ 
>  #ifndef _WIN32
>  
>  #ifndef KEY_QUERY_VALUE
>***************
>*** 257,262 ****
>--- 260,267 ----
>  
>  #define WSH_SPACES " \t,;="
>  
>+ 	res_init_startup();  
>+ 
>      _res.nsaddr.sin_addr.s_addr = INADDR_ANY;
>      _res.nsaddr.sin_family = AF_INET;
>      _res.nsaddr.sin_port = htons(NAMESERVER_PORT);
>***************
>*** 282,287 ****
>--- 287,293 ----
>              havens++;
>              nserv = _res.nscount;
>          }
>+ 		OutputDebugString("Nameservers from iphlp");
>      }
>  
>      if( which_reg ){
>***************
>*** 1812,1820 ****
>      cb = BUFSIZ;
>      return RegQueryValue(key, subkey, buf, &cb) == ERROR_SUCCESS;
>  }
>- 
>- void res_init_startup();
>- void res_init_cleanup();
>  
>  static
>  HMODULE
>--- 1818,1823 ----
>_______________________________________________
>krbdev mailing list             krbdev at mit.edu
>https://mailman.mit.edu/mailman/listinfo/krbdev
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3590 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.mit.edu/pipermail/krbdev/attachments/20030710/6eca3308/attachment.bin


More information about the krbdev mailing list