view src/common_osx.mm @ 602:92929d26b8db

Fix failure to provide default initialisation vector for AES CBC mode (I'm surprised pycrypto allowed this previously, but it doesn't now, thus catching my error). Also make debug output a bit more helpful
author Chris Cannam
date Tue, 03 Jul 2012 10:02:22 +0100
parents 2d3f1e5d8638
children
line wrap: on
line source

#include "common.h"

#include <QString>

#ifdef Q_OS_MAC

#include <Foundation/Foundation.h>

QString getUserRealName()
{
    NSString *s = NSFullUserName();
    return QString::fromLocal8Bit([s UTF8String]);
}

#endif