~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to ext/openssl/ossl_ns_spki.c

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: ossl_ns_spki.c,v 1.6 2005/08/22 20:47:53 gotoyuzo Exp $
 
2
 * $Id: ossl_ns_spki.c,v 1.7 2006/03/15 07:41:33 gotoyuzo Exp $
3
3
 * 'OpenSSL for Ruby' project
4
4
 * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
5
5
 * All rights reserved.
168
168
    GetSPKI(self, spki);
169
169
    if (spki->spkac->challenge->length <= 0) {
170
170
        OSSL_Debug("Challenge.length <= 0?");
171
 
        return rb_str_new2(NULL);
 
171
        return rb_str_new(0, 0);
172
172
    }
173
173
 
174
174
    return rb_str_new(spki->spkac->challenge->data,