This file is indexed.

/usr/include/thunderbird/nsITLSServerSocket.h is in thunderbird-dev 1:52.8.0-1~deb8u1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsITLSServerSocket.idl
 */

#ifndef __gen_nsITLSServerSocket_h__
#define __gen_nsITLSServerSocket_h__


#ifndef __gen_nsIServerSocket_h__
#include "nsIServerSocket.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIX509Cert; /* forward declaration */

class nsITLSServerSecurityObserver; /* forward declaration */

class nsISocketTransport; /* forward declaration */


/* starting interface:    nsITLSServerSocket */
#define NS_ITLSSERVERSOCKET_IID_STR "cc2c30f9-cfaa-4b8a-bd44-c24881981b74"

#define NS_ITLSSERVERSOCKET_IID \
  {0xcc2c30f9, 0xcfaa, 0x4b8a, \
    { 0xbd, 0x44, 0xc2, 0x48, 0x81, 0x98, 0x1b, 0x74 }}

class NS_NO_VTABLE nsITLSServerSocket : public nsIServerSocket {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSSERVERSOCKET_IID)

  /* attribute nsIX509Cert serverCert; */
  NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) = 0;
  NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) = 0;

  /* void setSessionCache (in boolean aSessionCache); */
  NS_IMETHOD SetSessionCache(bool aSessionCache) = 0;

  /* void setSessionTickets (in boolean aSessionTickets); */
  NS_IMETHOD SetSessionTickets(bool aSessionTickets) = 0;

  enum {
    REQUEST_NEVER = 0U,
    REQUEST_FIRST_HANDSHAKE = 1U,
    REQUEST_ALWAYS = 2U,
    REQUIRE_FIRST_HANDSHAKE = 3U,
    REQUIRE_ALWAYS = 4U
  };

  /* void setRequestClientCertificate (in unsigned long aRequestClientCert); */
  NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) = 0;

  /* void setCipherSuites ([array, size_is (aLength)] in unsigned short aCipherSuites, in unsigned long aLength); */
  NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) = 0;

  /* void setVersionRange (in unsigned short aMinVersion, in unsigned short aMaxVersion); */
  NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSServerSocket, NS_ITLSSERVERSOCKET_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITLSSERVERSOCKET \
  NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override; \
  NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) override; \
  NS_IMETHOD SetSessionCache(bool aSessionCache) override; \
  NS_IMETHOD SetSessionTickets(bool aSessionTickets) override; \
  NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) override; \
  NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) override; \
  NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSITLSSERVERSOCKET \
  NS_METHOD GetServerCert(nsIX509Cert * *aServerCert); \
  NS_METHOD SetServerCert(nsIX509Cert *aServerCert); \
  NS_METHOD SetSessionCache(bool aSessionCache); \
  NS_METHOD SetSessionTickets(bool aSessionTickets); \
  NS_METHOD SetRequestClientCertificate(uint32_t aRequestClientCert); \
  NS_METHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength); \
  NS_METHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITLSSERVERSOCKET(_to) \
  NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override { return _to GetServerCert(aServerCert); } \
  NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) override { return _to SetServerCert(aServerCert); } \
  NS_IMETHOD SetSessionCache(bool aSessionCache) override { return _to SetSessionCache(aSessionCache); } \
  NS_IMETHOD SetSessionTickets(bool aSessionTickets) override { return _to SetSessionTickets(aSessionTickets); } \
  NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) override { return _to SetRequestClientCertificate(aRequestClientCert); } \
  NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) override { return _to SetCipherSuites(aCipherSuites, aLength); } \
  NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) override { return _to SetVersionRange(aMinVersion, aMaxVersion); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITLSSERVERSOCKET(_to) \
  NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerCert(aServerCert); } \
  NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerCert(aServerCert); } \
  NS_IMETHOD SetSessionCache(bool aSessionCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSessionCache(aSessionCache); } \
  NS_IMETHOD SetSessionTickets(bool aSessionTickets) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSessionTickets(aSessionTickets); } \
  NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestClientCertificate(aRequestClientCert); } \
  NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCipherSuites(aCipherSuites, aLength); } \
  NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVersionRange(aMinVersion, aMaxVersion); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsTLSServerSocket : public nsITLSServerSocket
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITLSSERVERSOCKET

  nsTLSServerSocket();

private:
  ~nsTLSServerSocket();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsTLSServerSocket, nsITLSServerSocket)

nsTLSServerSocket::nsTLSServerSocket()
{
  /* member initializers and constructor code */
}

nsTLSServerSocket::~nsTLSServerSocket()
{
  /* destructor code */
}

/* attribute nsIX509Cert serverCert; */
NS_IMETHODIMP nsTLSServerSocket::GetServerCert(nsIX509Cert * *aServerCert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTLSServerSocket::SetServerCert(nsIX509Cert *aServerCert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setSessionCache (in boolean aSessionCache); */
NS_IMETHODIMP nsTLSServerSocket::SetSessionCache(bool aSessionCache)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setSessionTickets (in boolean aSessionTickets); */
NS_IMETHODIMP nsTLSServerSocket::SetSessionTickets(bool aSessionTickets)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setRequestClientCertificate (in unsigned long aRequestClientCert); */
NS_IMETHODIMP nsTLSServerSocket::SetRequestClientCertificate(uint32_t aRequestClientCert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setCipherSuites ([array, size_is (aLength)] in unsigned short aCipherSuites, in unsigned long aLength); */
NS_IMETHODIMP nsTLSServerSocket::SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setVersionRange (in unsigned short aMinVersion, in unsigned short aMaxVersion); */
NS_IMETHODIMP nsTLSServerSocket::SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsITLSClientStatus */
#define NS_ITLSCLIENTSTATUS_IID_STR "19668ea4-e5ad-4182-9698-7e890d48f327"

#define NS_ITLSCLIENTSTATUS_IID \
  {0x19668ea4, 0xe5ad, 0x4182, \
    { 0x96, 0x98, 0x7e, 0x89, 0x0d, 0x48, 0xf3, 0x27 }}

class NS_NO_VTABLE nsITLSClientStatus : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSCLIENTSTATUS_IID)

  /* readonly attribute nsIX509Cert peerCert; */
  NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) = 0;

  enum {
    SSL_VERSION_3 = 768,
    TLS_VERSION_1 = 769,
    TLS_VERSION_1_1 = 770,
    TLS_VERSION_1_2 = 771,
    TLS_VERSION_1_3 = 772,
    TLS_VERSION_UNKNOWN = -1
  };

  /* readonly attribute short tlsVersionUsed; */
  NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) = 0;

  /* readonly attribute ACString cipherName; */
  NS_IMETHOD GetCipherName(nsACString & aCipherName) = 0;

  /* readonly attribute unsigned long keyLength; */
  NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) = 0;

  /* readonly attribute unsigned long macLength; */
  NS_IMETHOD GetMacLength(uint32_t *aMacLength) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSClientStatus, NS_ITLSCLIENTSTATUS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITLSCLIENTSTATUS \
  NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) override; \
  NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) override; \
  NS_IMETHOD GetCipherName(nsACString & aCipherName) override; \
  NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override; \
  NS_IMETHOD GetMacLength(uint32_t *aMacLength) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSITLSCLIENTSTATUS \
  NS_METHOD GetPeerCert(nsIX509Cert * *aPeerCert); \
  NS_METHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed); \
  NS_METHOD GetCipherName(nsACString & aCipherName); \
  NS_METHOD GetKeyLength(uint32_t *aKeyLength); \
  NS_METHOD GetMacLength(uint32_t *aMacLength); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITLSCLIENTSTATUS(_to) \
  NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) override { return _to GetPeerCert(aPeerCert); } \
  NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) override { return _to GetTlsVersionUsed(aTlsVersionUsed); } \
  NS_IMETHOD GetCipherName(nsACString & aCipherName) override { return _to GetCipherName(aCipherName); } \
  NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return _to GetKeyLength(aKeyLength); } \
  NS_IMETHOD GetMacLength(uint32_t *aMacLength) override { return _to GetMacLength(aMacLength); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITLSCLIENTSTATUS(_to) \
  NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPeerCert(aPeerCert); } \
  NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTlsVersionUsed(aTlsVersionUsed); } \
  NS_IMETHOD GetCipherName(nsACString & aCipherName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCipherName(aCipherName); } \
  NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyLength(aKeyLength); } \
  NS_IMETHOD GetMacLength(uint32_t *aMacLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMacLength(aMacLength); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsTLSClientStatus : public nsITLSClientStatus
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITLSCLIENTSTATUS

  nsTLSClientStatus();

private:
  ~nsTLSClientStatus();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsTLSClientStatus, nsITLSClientStatus)

nsTLSClientStatus::nsTLSClientStatus()
{
  /* member initializers and constructor code */
}

nsTLSClientStatus::~nsTLSClientStatus()
{
  /* destructor code */
}

/* readonly attribute nsIX509Cert peerCert; */
NS_IMETHODIMP nsTLSClientStatus::GetPeerCert(nsIX509Cert * *aPeerCert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute short tlsVersionUsed; */
NS_IMETHODIMP nsTLSClientStatus::GetTlsVersionUsed(int16_t *aTlsVersionUsed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString cipherName; */
NS_IMETHODIMP nsTLSClientStatus::GetCipherName(nsACString & aCipherName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long keyLength; */
NS_IMETHODIMP nsTLSClientStatus::GetKeyLength(uint32_t *aKeyLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long macLength; */
NS_IMETHODIMP nsTLSClientStatus::GetMacLength(uint32_t *aMacLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsITLSServerConnectionInfo */
#define NS_ITLSSERVERCONNECTIONINFO_IID_STR "8a93f5d5-eddd-4c62-a4bd-bfd297653184"

#define NS_ITLSSERVERCONNECTIONINFO_IID \
  {0x8a93f5d5, 0xeddd, 0x4c62, \
    { 0xa4, 0xbd, 0xbf, 0xd2, 0x97, 0x65, 0x31, 0x84 }}

class NS_NO_VTABLE nsITLSServerConnectionInfo : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSSERVERCONNECTIONINFO_IID)

  /* void setSecurityObserver (in nsITLSServerSecurityObserver observer); */
  NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) = 0;

  /* readonly attribute nsITLSServerSocket serverSocket; */
  NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) = 0;

  /* readonly attribute nsITLSClientStatus status; */
  NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSServerConnectionInfo, NS_ITLSSERVERCONNECTIONINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITLSSERVERCONNECTIONINFO \
  NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) override; \
  NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) override; \
  NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSITLSSERVERCONNECTIONINFO \
  NS_METHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer); \
  NS_METHOD GetServerSocket(nsITLSServerSocket * *aServerSocket); \
  NS_METHOD GetStatus(nsITLSClientStatus * *aStatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITLSSERVERCONNECTIONINFO(_to) \
  NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) override { return _to SetSecurityObserver(observer); } \
  NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) override { return _to GetServerSocket(aServerSocket); } \
  NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) override { return _to GetStatus(aStatus); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITLSSERVERCONNECTIONINFO(_to) \
  NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityObserver(observer); } \
  NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerSocket(aServerSocket); } \
  NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsTLSServerConnectionInfo : public nsITLSServerConnectionInfo
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITLSSERVERCONNECTIONINFO

  nsTLSServerConnectionInfo();

private:
  ~nsTLSServerConnectionInfo();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsTLSServerConnectionInfo, nsITLSServerConnectionInfo)

nsTLSServerConnectionInfo::nsTLSServerConnectionInfo()
{
  /* member initializers and constructor code */
}

nsTLSServerConnectionInfo::~nsTLSServerConnectionInfo()
{
  /* destructor code */
}

/* void setSecurityObserver (in nsITLSServerSecurityObserver observer); */
NS_IMETHODIMP nsTLSServerConnectionInfo::SetSecurityObserver(nsITLSServerSecurityObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsITLSServerSocket serverSocket; */
NS_IMETHODIMP nsTLSServerConnectionInfo::GetServerSocket(nsITLSServerSocket * *aServerSocket)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsITLSClientStatus status; */
NS_IMETHODIMP nsTLSServerConnectionInfo::GetStatus(nsITLSClientStatus * *aStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsITLSServerSecurityObserver */
#define NS_ITLSSERVERSECURITYOBSERVER_IID_STR "1f62e1ae-e546-4a38-8917-d428472ed736"

#define NS_ITLSSERVERSECURITYOBSERVER_IID \
  {0x1f62e1ae, 0xe546, 0x4a38, \
    { 0x89, 0x17, 0xd4, 0x28, 0x47, 0x2e, 0xd7, 0x36 }}

class NS_NO_VTABLE nsITLSServerSecurityObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSSERVERSECURITYOBSERVER_IID)

  /* void onHandshakeDone (in nsITLSServerSocket aServer, in nsITLSClientStatus aStatus); */
  NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSServerSecurityObserver, NS_ITLSSERVERSECURITYOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITLSSERVERSECURITYOBSERVER \
  NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSITLSSERVERSECURITYOBSERVER \
  NS_METHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITLSSERVERSECURITYOBSERVER(_to) \
  NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) override { return _to OnHandshakeDone(aServer, aStatus); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITLSSERVERSECURITYOBSERVER(_to) \
  NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnHandshakeDone(aServer, aStatus); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsTLSServerSecurityObserver : public nsITLSServerSecurityObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITLSSERVERSECURITYOBSERVER

  nsTLSServerSecurityObserver();

private:
  ~nsTLSServerSecurityObserver();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsTLSServerSecurityObserver, nsITLSServerSecurityObserver)

nsTLSServerSecurityObserver::nsTLSServerSecurityObserver()
{
  /* member initializers and constructor code */
}

nsTLSServerSecurityObserver::~nsTLSServerSecurityObserver()
{
  /* destructor code */
}

/* void onHandshakeDone (in nsITLSServerSocket aServer, in nsITLSClientStatus aStatus); */
NS_IMETHODIMP nsTLSServerSecurityObserver::OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsITLSServerSocket_h__ */