Commit workaround for LH (disabled).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21091 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -987,6 +987,24 @@ pk_rd_pa_reply_enckey(krb5_context context,
|
|||||||
p = content.data;
|
p = content.data;
|
||||||
length = content.length;
|
length = content.length;
|
||||||
|
|
||||||
|
#if 0 /* windows LH with interesting CMS packets, leaks memory */
|
||||||
|
{
|
||||||
|
size_t ph = 1 + der_length_len (length);
|
||||||
|
unsigned char *ptr = malloc(length + ph);
|
||||||
|
size_t l;
|
||||||
|
|
||||||
|
memcpy(ptr + ph, p, length);
|
||||||
|
|
||||||
|
ret = der_put_length_and_tag (ptr + ph - 1, ph, length,
|
||||||
|
ASN1_C_UNIV, CONS, UT_Sequence, &l);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
ptr += ph - l;
|
||||||
|
length += l;
|
||||||
|
p = ptr;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* win2k uses ContentInfo */
|
/* win2k uses ContentInfo */
|
||||||
if (type == COMPAT_WIN2K) {
|
if (type == COMPAT_WIN2K) {
|
||||||
ContentInfo ci;
|
ContentInfo ci;
|
||||||
|
Reference in New Issue
Block a user