[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/digest-md5
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/digest-md5 |
Date: |
Sun, 19 Dec 2004 06:36:13 +0100 |
Update of /home/cvs/gsasl/lib/digest-md5
In directory dopio:/tmp/cvs-serv32145
Modified Files:
Makefile.am
Added Files:
free.h free.c
Log Message:
Add functions to deallocate DIGEST-MD5 token structures.
--- /home/cvs/gsasl/lib/digest-md5/Makefile.am 2004/12/19 04:32:08 1.17
+++ /home/cvs/gsasl/lib/digest-md5/Makefile.am 2004/12/19 05:36:12 1.18
@@ -29,7 +29,8 @@
tokens.h \
validate.h validate.c \
parser.h parser.c \
- printer.h printer.c
+ printer.h printer.c \
+ free.h free.c
if CLIENT
libgsasl_digest_md5_la_SOURCES += client.c
--- /home/cvs/gsasl/lib/digest-md5/free.h 2004/12/19 05:36:13 NONE
+++ /home/cvs/gsasl/lib/digest-md5/free.h 2004/12/19 05:36:13 1.1
/* free.h --- Free allocated data in DIGEST-MD5 token structures.
* Copyright (C) 2004 Simon Josefsson
*
* This file is part of GNU SASL Library.
*
* GNU SASL Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* GNU SASL Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GNU SASL Library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
*/
#ifndef DIGEST_MD5_FREE_H
# define DIGEST_MD5_FREE_H
/* Get token types. */
#include "tokens.h"
extern void digest_md5_free_challenge (digest_md5_challenge *c);
extern void digest_md5_free_response (digest_md5_response *r);
extern void digest_md5_free_finish (digest_md5_finish *f);
#endif /* DIGEST_MD5_FREE_H */
--- /home/cvs/gsasl/lib/digest-md5/free.c 2004/12/19 05:36:13 NONE
+++ /home/cvs/gsasl/lib/digest-md5/free.c 2004/12/19 05:36:13 1.1
/* free.h --- Free allocated data in DIGEST-MD5 token structures.
* Copyright (C) 2004 Simon Josefsson
*
* This file is part of GNU SASL Library.
*
* GNU SASL Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* GNU SASL Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GNU SASL Library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
*/
/* Get prototypes. */
#include "free.h"
/* Get size_t. */
#include <stddef.h>
/* Get free. */
#include <stdlib.h>
/* Get memset. */
#include <string.h>
void
digest_md5_free_challenge (digest_md5_challenge *c)
{
size_t i;
for (i = 0; i < c->nrealms; i++)
free (c->realms[i]);
if (c->realms)
free (c->realms);
if (c->nonce)
free (c->nonce);
memset (c, 0, sizeof (*c));
}
void
digest_md5_free_response (digest_md5_response *r)
{
if (r->username)
free (r->username);
if (r->realm)
free (r->realm);
if (r->nonce)
free (r->cnonce);
if (r->digesturi)
free (r->digesturi);
if (r->authzid)
free (r->authzid);
memset (r, 0, sizeof (*r));
}
void
digest_md5_free_finish (digest_md5_finish *f)
{
if (f->rspauth)
free (f->rspauth);
memset (f, 0, sizeof (*f));
}
- CVS gsasl/lib/digest-md5, (continued)
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/18
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5,
gsasl-commit <=
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19
- CVS gsasl/lib/digest-md5, gsasl-commit, 2004/12/19