~ubuntu-branches/ubuntu/lucid/openssl/lucid-proposed

« back to all changes in this revision

Viewing changes to crypto/asn1/asn1_lib.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-06-13 18:15:46 UTC
  • mto: (11.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090613181546-vbfntai3b009dl1u
Tags: upstream-0.9.8k
ImportĀ upstreamĀ versionĀ 0.9.8k

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
        return(1);
394
394
        }
395
395
 
 
396
void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len)
 
397
        {
 
398
        if (str->data)
 
399
                OPENSSL_free(str->data);
 
400
        str->data = data;
 
401
        str->length = len;
 
402
        }
 
403
 
396
404
ASN1_STRING *ASN1_STRING_new(void)
397
405
        {
398
406
        return(ASN1_STRING_type_new(V_ASN1_OCTET_STRING));