forked from sweetums/SASL-OAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoauth_init.c
56 lines (47 loc) · 1.04 KB
/
oauth_init.c
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
/* Oauth SASL plugin
* Bill Mills
* $Id: $
*
* Copyright (c) 2010, Yahoo! Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* See accompanying LICENSE file for terms.
*
*/
#include <config.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#ifndef macintosh
#include <sys/stat.h>
#endif
#include <fcntl.h>
#include <assert.h>
#include <sasl.h>
#include <saslplug.h>
#include <saslutil.h>
#include "plugin_common.h"
#ifdef macintosh
#include <sasl_oauth_plugin_decl.h>
#endif
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
printf("debug: %s %ds
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
#endif
SASL_CLIENT_PLUG_INIT( oauth )
SASL_SERVER_PLUG_INIT( oauth )