1/* 2 Handling of NTLM Authentication 3 Copyright (C) 2009, Kai Sommerfeld <kso@openoffice.org> 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Library General Public 7 License as published by the Free Software Foundation; either 8 version 2 of the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Library General Public License for more details. 14 15 You should have received a copy of the GNU Library General Public 16 License along with this library; if not, write to the Free 17 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 18 MA 02111-1307, USA 19 20*/ 21#ifndef NE_NTLM_H 22#define NE_NTLM_H 23 24#include "config.h" 25 26/* PRIVATE TO NEON -- NOT PART OF THE EXTERNAL API. */ 27 28#ifdef HAVE_NTLM 29 30#include "ne_defs.h" 31 32typedef struct ne_ntlm_context_s ne_ntlm_context; 33 34NE_PRIVATE ne_ntlm_context *ne__ntlm_create_context(const char *userName, const char *password); 35 36NE_PRIVATE int ne__ntlm_clear_context(ne_ntlm_context *context); 37 38NE_PRIVATE void ne__ntlm_destroy_context(ne_ntlm_context *context); 39 40NE_PRIVATE int ne__ntlm_authenticate(ne_ntlm_context *context, const char *responseToken); 41 42NE_PRIVATE char *ne__ntlm_getRequestToken(ne_ntlm_context *context); 43 44#endif /* HAVE_NTLM */ 45 46#endif /* NE_NTLM_H */ 47