xform_tcp.c (c398230b64aea809cb7c5cea8db580af7097920c) xform_tcp.c (a0196c3c891ccf2ee88854f9798fd8e44d0e9f16)
1/* $FreeBSD$ */
2
3/*-
4 * Copyright (c) 2003 Bruce M. Simpson <bms@spc.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 103 unchanged lines hidden (view full) ---

112 *
113 * Called when the SA is deleted.
114 */
115static int
116tcpsignature_zeroize(struct secasvar *sav)
117{
118
119 if (sav->key_auth)
1/* $FreeBSD$ */
2
3/*-
4 * Copyright (c) 2003 Bruce M. Simpson <bms@spc.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 103 unchanged lines hidden (view full) ---

112 *
113 * Called when the SA is deleted.
114 */
115static int
116tcpsignature_zeroize(struct secasvar *sav)
117{
118
119 if (sav->key_auth)
120 bzero(_KEYBUF(sav->key_auth), _KEYLEN(sav->key_auth));
120 bzero(sav->key_auth->key_data, _KEYLEN(sav->key_auth));
121
122 sav->tdb_cryptoid = 0;
123 sav->tdb_authalgxform = NULL;
124 sav->tdb_xform = NULL;
125
126 return (0);
127}
128

--- 41 unchanged lines hidden ---
121
122 sav->tdb_cryptoid = 0;
123 sav->tdb_authalgxform = NULL;
124 sav->tdb_xform = NULL;
125
126 return (0);
127}
128

--- 41 unchanged lines hidden ---