playerPlayingState works properly in 10.4 now. It should work in 10.3/10.2 fine also...
[MenuTunes.git] / MTeSerialNumber.m
index 5d5de1c..a4882ce 100755 (executable)
@@ -1,6 +1,6 @@
 #import "MTeSerialNumber.h"
 #import "validate.h"
 #import "MTeSerialNumber.h"
 #import "validate.h"
-
+#import <openssl/sha.h>
 
 @interface MTeSerialNumber (Private)
 - (short)validate;
 
 @interface MTeSerialNumber (Private)
 - (short)validate;
     if ( _serialNumber ) {
 
         BOOL dead = NO;
     if ( _serialNumber ) {
 
         BOOL dead = NO;
-        
+        unsigned char *result = SHA1([[_serialNumber stringByAppendingString:@"-h4x0r"] UTF8String], [_serialNumber length] + 5, NULL);
+               if ([[[NSData dataWithBytes:result length:strlen(result)] description] isEqualToString:@"<db7ea71c 2919ff4b 520b6491 8d6813db b70647>"]) {
+                       dead = YES;
+               }
+               
         if ( [_deadSerials count] )  {
             NSEnumerator *deadEnum = [_deadSerials objectEnumerator];
             id            aDeadSerial;
         if ( [_deadSerials count] )  {
             NSEnumerator *deadEnum = [_deadSerials objectEnumerator];
             id            aDeadSerial;