~ubuntu-branches/ubuntu/vivid/mediatomb/vivid

« back to all changes in this revision

Viewing changes to tombupnp/upnp/src/uuid/sysdep.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-03-02 13:09:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080302130916-zlljdze3kt7vuq4b
Tags: 0.11.0-1
* New upstream release.
* Include message about which inotify headers will be used when enabling
  inotify runtime support.
* Fixed error with use of INTERFACE in init script. Also removed use of -m
  option.
* Including new config.xml options.
* Added more build dependencies for new upstream release.
* Removed build dependency of libid3-dev, taglib is now preferred.
* mediatomb.xpm and manpage.xml is now included in orig tarball.
* inotify patch is not needed anymore.
* md5 patch has been committed upstream and is no longer needed. Also removed
  README.Debian.
* TwinHelix PNG fix is now used. Removed from TODO.
* Adding dependency of iceweasel for mediatomb package.
* Updated copyright file.
* Updated watch file.
* Updated rules file for proper configure options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
void
36
36
get_ieee_node_identifier( uuid_node_t * node )
37
37
{
38
 
    char seed[16];
 
38
    unsigned char seed[16];
39
39
    static int inited = 0;
40
40
    static uuid_node_t saved_node;
41
41
 
83
83
 
84
84
/*-----------------------------------------------------------------------------*/
85
85
void
86
 
get_random_info( char seed[16] )
 
86
get_random_info( unsigned char seed[16] )
87
87
{
88
 
    MD5_CTX c;
 
88
    struct MD5Context c;
89
89
    typedef struct {
90
90
        MEMORYSTATUS m;
91
91
        SYSTEM_INFO s;
145
145
 
146
146
/*-----------------------------------------------------------------------------*/
147
147
void
148
 
get_random_info( char seed[16] )
 
148
get_random_info( unsigned char seed[16] )
149
149
{
150
 
    MD5_CTX c;
 
150
    struct MD5Context c;
151
151
    typedef struct {
152
152
//        struct sysinfo s;
153
153
        struct timeval t;
159
159
 
160
160
    gettimeofday( &r.t, ( struct timezone * )0 );
161
161
    gethostname( r.hostname, 256 );
162
 
    MD5Update( &c, &r, sizeof( randomness ) );
 
162
    MD5Update( &c, (unsigned char *)&r, sizeof( randomness ) );
163
163
    MD5Final( seed, &c );
164
164
};
165
165