~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to ext/openssl/ossl_x509name.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: ossl_x509name.c 12153 2007-04-05 19:03:28Z technorama $
 
2
 * $Id: ossl_x509name.c 12799 2007-07-15 13:24:39Z nobu $
3
3
 * 'OpenSSL for Ruby' project
4
4
 * Copyright (C) 2001 Michal Rokos <m.rokos@sh.cvut.cz>
5
5
 * All rights reserved.
204
204
        return ossl_x509name_to_s_old(self);
205
205
    else iflag = NUM2ULONG(flag);
206
206
    if (!(out = BIO_new(BIO_s_mem())))
207
 
        rb_raise(eX509NameError, NULL);
 
207
        ossl_raise(eX509NameError, NULL);
208
208
    GetX509Name(self, name);
209
209
    if (!X509_NAME_print_ex(out, name, 0, iflag)){
210
210
        BIO_free(out);
211
 
        rb_raise(eX509NameError, NULL);
 
211
        ossl_raise(eX509NameError, NULL);
212
212
    }
213
213
    str = ossl_membio2str(out);
214
214