RFR 6722928: Support SSPI as a native GSS-API provider

Weijun Wang weijun.wang at oracle.com
Wed Jan 16 16:15:54 UTC 2019



> On Jan 17, 2019, at 12:13 AM, Nico Williams <Nico.Williams at twosigma.com> wrote:
> 
> On Wed, Jan 16, 2019 at 11:12:00AM -0500, Christos Zoulas wrote:
>> On Jan 17, 12:04am, weijun.wang at oracle.com (Weijun Wang) wrote:
>> -- Subject: Re: RFR 6722928: Support SSPI as a native GSS-API provider
>> 
>> | Hi Nico,
>> | 
>> | Can you provide more explanation on below? I have't touched C/C++ for quite=
>> |  some time and I really forgot what extern "C" is for. I included it here o=
>> | nly because it's also in gssapi.h and I thought I should make the declarati=
>> | on and implementation consistent.
>> 
>> I am not Nico, but:
>> 
>> extern "C" <decl>;
>> 
>> or
>> 
>> extern "C" {
>> 	<decl>
>> };
>> 
>> Tells the compiler that the functions/variables/types declared are supposed
>> to follow "C" linkage conventions (they are meant to be used from "C" or
>> compiled using a "C" compiler). For functions this means that their names
>> don't get mangled, etc.
>> 
>> I hope this helps,
> 
> Ah, and that code doesn't need to be C, so never mind that one comment
> of mine.

So I can just throw away the 'extern "c"' line?

> 
> Nico
> -- 




More information about the security-dev mailing list