Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c787f638
Commit
c787f638
authored
Feb 23, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that kept rotor from being able to decode licenses with > 7 bit rotor keys
parent
478a3492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
9 deletions
+34
-9
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+34
-9
No files found.
lib/python/OFS/Application.py
View file @
c787f638
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.5
1 1998/02/17 14:23:50
brian Exp $'''
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
$Id: Application.py,v 1.5
2 1998/02/23 17:49:01
brian Exp $'''
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
...
...
@@ -289,6 +289,29 @@ def install_products():
Globals
.
default__class_init__
(
Folder
)
def
lcd
(
e
):
_k1_
=
'
\
357
\
261
\
3
90
\
247
\
357
\
362
\
306
\
216
\
226
'
_k2_
=
'
\
157
\
161
\
0
90
\
147
\
157
\
122
\
106
\
016
\
126
'
rot
=
rotor
.
newrotor
(
_k2_
,
13
)
dat
=
rot
.
decrypt
(
e
)
del
rot
dat
=
list
(
dat
)
dat
.
reverse
()
dat
=
join
(
dat
,
''
)
dat
=
marshal
.
loads
(
dat
)
if
type
(
dat
)
!=
type
([]):
# Compatibility w/old lic files
rot
=
rotor
.
newrotor
(
_k1_
,
13
)
dat
=
rot
.
decrypt
(
e
)
del
rot
dat
=
list
(
dat
)
dat
.
reverse
()
dat
=
join
(
dat
,
''
)
dat
=
marshal
.
loads
(
dat
)
if
type
(
dat
)
!=
type
([]):
return
None
return
dat
def
lic_check
(
product_name
):
path_join
=
os
.
path
.
join
...
...
@@ -311,15 +334,14 @@ def lic_check(product_name):
dat
=
f
.
read
()
f
.
close
()
rot
=
rotor
.
newrotor
(
'
\
357
\
261
\
3
90
\
247
\
357
\
362
\
306
\
216
\
226
'
,
13
)
dat
=
rot
.
decrypt
(
dat
)
dat
=
list
(
dat
)
dat
.
reverse
()
dat
=
join
(
dat
,
''
)
dat
=
marshal
.
loads
(
dat
)
del
rot
dat
=
lcd
(
dat
)
if
dat
is
None
:
return
0
name
=
dat
[
0
]
val
=
dat
[
1
]
if
name
!=
product_name
:
return
0
if
val
is
None
:
...
...
@@ -374,6 +396,9 @@ class Misc_:
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.52 1998/02/23 17:49:01 brian
# Fixed bug that kept rotor from being able to decode licenses with > 7 bit rotor keys
#
# Revision 1.51 1998/02/17 14:23:50 brian
# *** empty log message ***
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment