Deleted Added
full compact
p12_utl.c (194206) p12_utl.c (205128)
1/* p12_utl.c */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999.
4 */
5/* ====================================================================
6 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

55 * Hudson (tjh@cryptsoft.com).
56 *
57 */
58
59#include <stdio.h>
60#include "cryptlib.h"
61#include <openssl/pkcs12.h>
62
1/* p12_utl.c */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999.
4 */
5/* ====================================================================
6 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

55 * Hudson (tjh@cryptsoft.com).
56 *
57 */
58
59#include <stdio.h>
60#include "cryptlib.h"
61#include <openssl/pkcs12.h>
62
63#ifdef OPENSSL_SYS_NETWARE
64/* Rename these functions to avoid name clashes on NetWare OS */
65#define uni2asc OPENSSL_uni2asc
66#define asc2uni OPENSSL_asc2uni
67#endif
68
63/* Cheap and nasty Unicode stuff */
64
65unsigned char *asc2uni(const char *asc, int asclen, unsigned char **uni, int *unilen)
66{
67 int ulen, i;
68 unsigned char *unitmp;
69 if (asclen == -1) asclen = strlen(asc);
70 ulen = asclen*2 + 2;

--- 76 unchanged lines hidden ---
69/* Cheap and nasty Unicode stuff */
70
71unsigned char *asc2uni(const char *asc, int asclen, unsigned char **uni, int *unilen)
72{
73 int ulen, i;
74 unsigned char *unitmp;
75 if (asclen == -1) asclen = strlen(asc);
76 ulen = asclen*2 + 2;

--- 76 unchanged lines hidden ---